discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d1454e4e1ae67a5b5aacaa496fa1df30aa3a11c3

commit d1454e4e1ae67a5b5aacaa496fa1df30aa3a11c3
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Sep 24 13:44:32 2015 -0400

    broadcast support for _GTK_FRAME_EXTENTS
    
    this is not actually supported yet, so behavior of windows using this
    feature will be more wayland-like, eg. geometry determined by area
    of window+shadow
    
    fix T2744
---
 src/bin/e_hints.c | 4 ++++
 src/bin/e_hints.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/src/bin/e_hints.c b/src/bin/e_hints.c
index b5bdb05..f95fed2 100644
--- a/src/bin/e_hints.c
+++ b/src/bin/e_hints.c
@@ -14,6 +14,7 @@ E_API Ecore_X_Atom ATM_ENLIGHTENMENT_SCALE = 0;
 
 E_API Ecore_X_Atom ATM_NETWM_SHOW_WINDOW_MENU = 0;
 E_API Ecore_X_Atom ATM_NETWM_PERFORM_BUTTON_ACTION = 0;
+E_API Ecore_X_Atom ATM_GTK_FRAME_EXTENTS = 0;
 #endif
 
 EINTERN void
@@ -32,6 +33,7 @@ e_hints_init(Ecore_Window root, Ecore_Window propwin)
       "ENLIGHTENMENT_SCALE",
       "_NET_WM_SHOW_WINDOW_MENU",
       "_NET_WM_PERFORM_BUTTON_ACTION",
+      "_GTK_FRAME_EXTENTS",
    };
    Ecore_X_Atom atoms[EINA_C_ARRAY_LENGTH(atom_names)];
    Ecore_X_Atom supported[45];
@@ -50,6 +52,7 @@ e_hints_init(Ecore_Window root, Ecore_Window propwin)
    ATM_ENLIGHTENMENT_SCALE = atoms[5];
    ATM_NETWM_SHOW_WINDOW_MENU = atoms[6];
    ATM_NETWM_PERFORM_BUTTON_ACTION = atoms[7];
+   ATM_GTK_FRAME_EXTENTS = atoms[8];
 
    supported_num = 0;
    /* Set what hints we support */
@@ -130,6 +133,7 @@ e_hints_init(Ecore_Window root, Ecore_Window propwin)
 
    supported[supported_num++] = ATM_NETWM_SHOW_WINDOW_MENU;
    supported[supported_num++] = ATM_NETWM_PERFORM_BUTTON_ACTION;
+   supported[supported_num++] = ATM_GTK_FRAME_EXTENTS;
 
 
 
diff --git a/src/bin/e_hints.h b/src/bin/e_hints.h
index 7e81e40..b402541 100644
--- a/src/bin/e_hints.h
+++ b/src/bin/e_hints.h
@@ -57,6 +57,7 @@ extern E_API Ecore_X_Atom ATM_ENLIGHTENMENT_VERSION;
 extern E_API Ecore_X_Atom ATM_ENLIGHTENMENT_SCALE;
 extern E_API Ecore_X_Atom ATM_NETWM_SHOW_WINDOW_MENU;
 extern E_API Ecore_X_Atom ATM_NETWM_PERFORM_BUTTON_ACTION;
+extern E_API Ecore_X_Atom ATM_GTK_FRAME_EXTENTS;
 #endif
 #endif
 #endif

-- 


Reply via email to