Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
E.h ewmh.c
Log Message:
Add hooks for _NET_SHOWING_DESKTOP.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.260
retrieving revision 1.261
diff -u -3 -r1.260 -r1.261
--- E.h 4 May 2004 19:04:20 -0000 1.260
+++ E.h 5 May 2004 00:17:12 -0000 1.261
@@ -2059,6 +2059,7 @@
void EWMH_SetClientList(void);
void EWMH_SetClientStacking(void);
void EWMH_SetActiveWindow(const EWin * ewin);
+void EWMH_SetShowingDesktop(int on);
void EWMH_SetWindowDesktop(const EWin * ewin);
void EWMH_SetWindowState(const EWin * ewin);
void EWMH_GetWindowName(EWin * ewin);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewmh.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -3 -r1.46 -r1.47
--- ewmh.c 4 May 2004 19:04:28 -0000 1.46
+++ ewmh.c 5 May 2004 00:17:15 -0000 1.47
@@ -59,6 +59,7 @@
Atom _NET_DESKTOP_VIEWPORT;
Atom _NET_WORKAREA;
Atom _NET_VIRTUAL_ROOTS;
+Atom _NET_SHOWING_DESKTOP;
Atom _NET_ACTIVE_WINDOW;
Atom _NET_CLIENT_LIST;
@@ -186,6 +187,7 @@
_ATOM_INIT(_NET_DESKTOP_VIEWPORT);
_ATOM_INIT(_NET_WORKAREA);
_ATOM_INIT(_NET_VIRTUAL_ROOTS);
+ _ATOM_INIT(_NET_SHOWING_DESKTOP);
_ATOM_INIT(_NET_ACTIVE_WINDOW);
_ATOM_INIT(_NET_CLIENT_LIST);
@@ -430,6 +432,17 @@
EDBUG_RETURN_;
}
+void
+EWMH_SetShowingDesktop(int on)
+{
+ CARD32 val;
+
+ EDBUG(6, "EWMH_SetShowingDesktop");
+ val = on;
+ _ATOM_SET_CARD32(_NET_SHOWING_DESKTOP, VRoot.win, &val, 1);
+ EDBUG_RETURN_;
+}
+
/*
* Functions that set X11-properties from E-window internals
*/
@@ -740,6 +753,13 @@
SetCurrentArea(event->data.l[0] / VRoot.w, event->data.l[1] / VRoot.h);
goto done;
}
+ else if (event->message_type == _NET_SHOWING_DESKTOP)
+ {
+ Eprintf("EWMH_ProcessClientMessage: _NET_SHOWING_DESKTOP: %d\n",
+ event->data.l[0]);
+ EWMH_SetShowingDesktop(event->data.l[0]);
+ goto done;
+ }
/*
* The ones that do target an application window
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs