From d1454e4e1ae67a5b5aacaa496fa1df30aa3a11c3 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 24 Sep 2015 13:44:32 -0400 Subject: [PATCH] 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 b5bdb05d1..f95fed2e4 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 7e81e4020..b4025419a 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