Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
e16-ecore_hints.c e16-ecore_hints.h ewins.h ewmh.c
Log Message:
Add some new atoms (_NET_WM_ACTION_ABOVE/BELOW).
===================================================================
RCS file: /cvs/e/e16/e/src/e16-ecore_hints.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e16-ecore_hints.c 8 Apr 2007 22:07:32 -0000 1.8
+++ e16-ecore_hints.c 17 Apr 2007 21:20:34 -0000 1.9
@@ -866,6 +866,8 @@
Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_FULLSCREEN;
Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP;
Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_CLOSE;
+Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_ABOVE;
+Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_BELOW;
Ecore_X_Atom ECORE_X_ATOM_NET_WM_STRUT;
Ecore_X_Atom ECORE_X_ATOM_NET_WM_STRUT_PARTIAL;
@@ -984,6 +986,8 @@
ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP =
_ATOM_GET("_NET_WM_ACTION_CHANGE_DESKTOP");
ECORE_X_ATOM_NET_WM_ACTION_CLOSE = _ATOM_GET("_NET_WM_ACTION_CLOSE");
+ ECORE_X_ATOM_NET_WM_ACTION_ABOVE = _ATOM_GET("_NET_WM_ACTION_ABOVE");
+ ECORE_X_ATOM_NET_WM_ACTION_BELOW = _ATOM_GET("_NET_WM_ACTION_BELOW");
ECORE_X_ATOM_NET_WM_STRUT = _ATOM_GET("_NET_WM_STRUT");
ECORE_X_ATOM_NET_WM_STRUT_PARTIAL = _ATOM_GET("_NET_WM_STRUT_PARTIAL");
===================================================================
RCS file: /cvs/e/e16/e/src/e16-ecore_hints.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e16-ecore_hints.h 8 Apr 2007 22:07:32 -0000 1.5
+++ e16-ecore_hints.h 17 Apr 2007 21:20:34 -0000 1.6
@@ -208,6 +208,8 @@
extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_FULLSCREEN;
extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP;
extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_CLOSE;
+extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_ABOVE;
+extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_ACTION_BELOW;
extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STRUT;
extern Ecore_X_Atom ECORE_X_ATOM_NET_WM_STRUT_PARTIAL;
===================================================================
RCS file: /cvs/e/e16/e/src/ewins.h,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -3 -r1.72 -r1.73
--- ewins.h 16 Apr 2007 20:31:33 -0000 1.72
+++ ewins.h 17 Apr 2007 21:20:34 -0000 1.73
@@ -127,6 +127,7 @@
unsigned inhibit_fullscreeen:1;
unsigned inhibit_change_desk:1;
unsigned inhibit_close:1;
+ unsigned inhibit_stacking:1;
unsigned inhibit_actions:1;
unsigned inhibit_focus:1;
===================================================================
RCS file: /cvs/e/e16/e/src/ewmh.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -3 -r1.116 -r1.117
--- ewmh.c 16 Apr 2007 16:36:10 -0000 1.116
+++ ewmh.c 17 Apr 2007 21:20:34 -0000 1.117
@@ -166,6 +166,8 @@
atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_FULLSCREEN;
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_ACTION_ABOVE;
+ atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_ACTION_BELOW;
atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STRUT_PARTIAL;
atom_list[atom_count++] = ECORE_X_ATOM_NET_WM_STRUT;
@@ -755,7 +757,7 @@
void
EWMH_SetWindowActions(const EWin * ewin)
{
- Ecore_X_Atom aa[10];
+ Ecore_X_Atom aa[12];
int num;
num = 0;
@@ -779,6 +781,10 @@
aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_CHANGE_DESKTOP;
if (!ewin->state.inhibit_close)
aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_CLOSE;
+ if (!ewin->state.inhibit_stacking)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_ABOVE;
+ if (!ewin->state.inhibit_stacking)
+ aa[num++] = ECORE_X_ATOM_NET_WM_ACTION_BELOW;
ecore_x_window_prop_atom_set(EwinGetClientXwin(ewin),
ECORE_X_ATOM_NET_WM_ALLOWED_ACTIONS, aa, num);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs