Enlightenment CVS committal
Author : sebastid
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
ecore_x_netwm.c
Log Message:
Let STRUT_PARTIAL check STRUT on failure.
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_netwm.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- ecore_x_netwm.c 3 Jun 2005 11:58:10 -0000 1.22
+++ ecore_x_netwm.c 3 Jun 2005 12:05:10 -0000 1.23
@@ -726,6 +726,7 @@
strut[10] = bottom_start_x;
strut[11] = bottom_end_x;
ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT_PARTIAL,
strut, 12);
+ ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_STRUT, strut, 4);
}
int
@@ -739,7 +740,16 @@
ret = ecore_x_window_prop_card32_get(win,
ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, strut, 12);
if (ret != 12)
- return 0;
+ {
+ int i;
+
+ ret = ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_STRUT,
strut, 4);
+ if (ret != 4)
+ return 0;
+
+ for (i = 4; i < 12; i++)
+ strut[i] = 0;
+ }
if (left) *left = strut[0];
if (right) *right = strut[1];
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs