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
This commit is contained in:
Mike Blumenkrantz 2015-09-24 13:44:32 -04:00
parent 6d2572efc0
commit d1454e4e1a
2 changed files with 5 additions and 0 deletions

View File

@ -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_SHOW_WINDOW_MENU = 0;
E_API Ecore_X_Atom ATM_NETWM_PERFORM_BUTTON_ACTION = 0; E_API Ecore_X_Atom ATM_NETWM_PERFORM_BUTTON_ACTION = 0;
E_API Ecore_X_Atom ATM_GTK_FRAME_EXTENTS = 0;
#endif #endif
EINTERN void EINTERN void
@ -32,6 +33,7 @@ e_hints_init(Ecore_Window root, Ecore_Window propwin)
"ENLIGHTENMENT_SCALE", "ENLIGHTENMENT_SCALE",
"_NET_WM_SHOW_WINDOW_MENU", "_NET_WM_SHOW_WINDOW_MENU",
"_NET_WM_PERFORM_BUTTON_ACTION", "_NET_WM_PERFORM_BUTTON_ACTION",
"_GTK_FRAME_EXTENTS",
}; };
Ecore_X_Atom atoms[EINA_C_ARRAY_LENGTH(atom_names)]; Ecore_X_Atom atoms[EINA_C_ARRAY_LENGTH(atom_names)];
Ecore_X_Atom supported[45]; Ecore_X_Atom supported[45];
@ -50,6 +52,7 @@ e_hints_init(Ecore_Window root, Ecore_Window propwin)
ATM_ENLIGHTENMENT_SCALE = atoms[5]; ATM_ENLIGHTENMENT_SCALE = atoms[5];
ATM_NETWM_SHOW_WINDOW_MENU = atoms[6]; ATM_NETWM_SHOW_WINDOW_MENU = atoms[6];
ATM_NETWM_PERFORM_BUTTON_ACTION = atoms[7]; ATM_NETWM_PERFORM_BUTTON_ACTION = atoms[7];
ATM_GTK_FRAME_EXTENTS = atoms[8];
supported_num = 0; supported_num = 0;
/* Set what hints we support */ /* 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_SHOW_WINDOW_MENU;
supported[supported_num++] = ATM_NETWM_PERFORM_BUTTON_ACTION; supported[supported_num++] = ATM_NETWM_PERFORM_BUTTON_ACTION;
supported[supported_num++] = ATM_GTK_FRAME_EXTENTS;

View File

@ -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_ENLIGHTENMENT_SCALE;
extern E_API Ecore_X_Atom ATM_NETWM_SHOW_WINDOW_MENU; 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_NETWM_PERFORM_BUTTON_ACTION;
extern E_API Ecore_X_Atom ATM_GTK_FRAME_EXTENTS;
#endif #endif
#endif #endif
#endif #endif