Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        E.h ewmh.c hints.c 


Log Message:
Implemented _NET_WORKAREA, patch from Roger Luethi <[EMAIL PROTECTED]>.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -3 -r1.135 -r1.136
--- E.h 18 Aug 2003 21:54:27 -0000      1.135
+++ E.h 18 Aug 2003 22:03:10 -0000      1.136
@@ -2384,6 +2384,7 @@
 void                EWMH_SetDesktopSize(void);
 void                EWMH_SetCurrentDesktop(void);
 void                EWMH_SetDesktopViewport(void);
+void                EWMH_SetWorkArea(void);
 void                EWMH_SetClientList(void);
 void                EWMH_SetActiveWindow(const EWin * ewin);
 void                EWMH_SetWindowDesktop(const EWin * ewin);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewmh.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- ewmh.c      3 Aug 2003 20:29:45 -0000       1.22
+++ ewmh.c      18 Aug 2003 22:03:10 -0000      1.23
@@ -63,6 +63,7 @@
 Atom                _NET_DESKTOP_NAMES;
 Atom                _NET_CURRENT_DESKTOP;
 Atom                _NET_DESKTOP_VIEWPORT;
+Atom                _NET_WORKAREA;
 Atom                _NET_VIRTUAL_ROOTS;
 
 Atom                _NET_ACTIVE_WINDOW;
@@ -205,6 +206,7 @@
    _ATOM_INIT(_NET_DESKTOP_NAMES);
    _ATOM_INIT(_NET_CURRENT_DESKTOP);
    _ATOM_INIT(_NET_DESKTOP_VIEWPORT);
+   _ATOM_INIT(_NET_WORKAREA);
    _ATOM_INIT(_NET_VIRTUAL_ROOTS);
 
    _ATOM_INIT(_NET_ACTIVE_WINDOW);
@@ -254,6 +256,7 @@
    EWMH_SetDesktopCount();
    EWMH_SetDesktopNames();
    EWMH_SetDesktopSize();
+   EWMH_SetWorkArea();
 
    EDBUG_RETURN_;
 }
@@ -311,6 +314,31 @@
    size[0] = ax * root.w;
    size[1] = ay * root.h;
    _ATOM_SET_CARD32(_NET_DESKTOP_GEOMETRY, root.win, &size, 2);
+   EDBUG_RETURN_;
+}
+
+void
+EWMH_SetWorkArea(void)
+{
+   CARD32             *p_coord;
+   int                 n_coord, i;
+
+   EDBUG(6, "EWMH_SetWorkArea");
+
+   n_coord = 4 * mode.numdesktops;
+   p_coord = Emalloc(n_coord * sizeof(CARD32));
+   if (p_coord)
+     {
+       for (i = 0; i < mode.numdesktops; i++)
+         {
+            p_coord[4 * i] = 0;
+            p_coord[4 * i + 1] = 0;
+            p_coord[4 * i + 2] = root.w;
+            p_coord[4 * i + 3] = root.h;
+         }
+       _ATOM_SET_CARD32(_NET_WORKAREA, root.win, p_coord, n_coord);
+       Efree(p_coord);
+     }
    EDBUG_RETURN_;
 }
 
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/hints.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- hints.c     12 Jul 2003 14:06:37 -0000      1.9
+++ hints.c     18 Aug 2003 22:03:10 -0000      1.10
@@ -81,6 +81,7 @@
 #if ENABLE_EWMH
    EWMH_SetDesktopCount();
    EWMH_SetDesktopNames();
+   EWMH_SetWorkArea();
 #endif
    EDBUG_RETURN_;
 }




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to