Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        ewmh.c 


Log Message:
Handle _NET_WM_STRUT_PARTIAL (partial info not used in arrange/maximize code 
yet).
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewmh.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -3 -r1.77 -r1.78
--- ewmh.c      8 Jul 2005 16:48:06 -0000       1.77
+++ ewmh.c      9 Jul 2005 10:15:18 -0000       1.78
@@ -156,7 +156,9 @@
    atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP;
    atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_CLOSE;
 
+   atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STRUT_PARTIAL;
    atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STRUT;
+
    atom_list[atom_count++] = ECORE_X_ATOM_NET_FRAME_EXTENTS;
    atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_WINDOW_OPACITY;
 
@@ -687,10 +689,15 @@
 EWMH_GetWindowStrut(EWin * ewin)
 {
    int                 num;
-   unsigned int        val[4];
+   unsigned int        val[12];
 
    num = ecore_x_window_prop_card32_get(ewin->client.win,
-                                       ECORE_X_ATOM_NET_WM_STRUT, val, 4);
+                                       ECORE_X_ATOM_NET_WM_STRUT_PARTIAL, val,
+                                       12);
+
+   if (num < 4)
+      num = ecore_x_window_prop_card32_get(ewin->client.win,
+                                          ECORE_X_ATOM_NET_WM_STRUT, val, 4);
    if (num < 4)
       return;
 
@@ -698,6 +705,18 @@
    ewin->strut.right = val[1];
    ewin->strut.top = val[2];
    ewin->strut.bottom = val[3];
+#if 0                          /* FIXME - Handle in placement code */
+   if (num < 12)
+      return;
+   ewin->strut.left_start_y = val[4];
+   ewin->strut.left_end_y = val[5];
+   ewin->strut.right_start_y = val[6];
+   ewin->strut.right_end_y = val[7];
+   ewin->strut.top_start_x = val[8];
+   ewin->strut.top_end_x = val[9];
+   ewin->strut.bottom_start_x = val[10];
+   ewin->strut.bottom_end_x = val[11];
+#endif
 }
 
 void
@@ -1024,7 +1043,8 @@
       EWMH_GetWindowName(ewin);
    else if (atom_change == ECORE_X_ATOM_NET_WM_ICON_NAME)
       EWMH_GetWindowIconName(ewin);
-   else if (atom_change == ECORE_X_ATOM_NET_WM_STRUT)
+   else if (atom_change == ECORE_X_ATOM_NET_WM_STRUT_PARTIAL ||
+           atom_change == ECORE_X_ATOM_NET_WM_STRUT)
       EWMH_GetWindowStrut(ewin);
    else if (atom_change == ECORE_X_ATOM_NET_WM_WINDOW_OPACITY)
       EWMH_GetWindowOpacity(ewin);




-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to