Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
ewmh.c
Log Message:
Set _NET_WM_STATE_HIDDEN when shaded.
Don't set iconified when _NET_WM_STATE_HIDDEN is set (WM_STATE does that).
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewmh.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ewmh.c 11 Jun 2003 19:41:30 -0000 1.15
+++ ewmh.c 14 Jun 2003 11:57:07 -0000 1.16
@@ -466,7 +466,7 @@
atom_list_set(atom_list, len, &atom_count, _NET_WM_STATE_SKIP_TASKBAR,
ewin->skiptask);
atom_list_set(atom_list, len, &atom_count, _NET_WM_STATE_HIDDEN,
- ewin->iconified);
+ ewin->iconified || ewin->shaded);
atom_list_set(atom_list, len, &atom_count, _NET_WM_STATE_MAXIMIZED_VERT,
ewin->ewmh_flags & NET_WM_FLAG_MAXIMIZED_VERT);
atom_list_set(atom_list, len, &atom_count, _NET_WM_STATE_MAXIMIZED_HORZ,
@@ -530,6 +530,12 @@
if (!p_atoms)
goto exit;
+ /* We must clear/set all according to not present/present */
+ ewin->sticky = ewin->shaded = 0;
+ ewin->skiptask = ewin->skip_ext_pager = 0;
+ ewin->ewmh_flags = 0;
+/* ewin->layer = No ... TBD */
+
for (i = 0; i < n_atoms; i++)
{
atom = p_atoms[i];
@@ -542,7 +548,7 @@
else if (atom == _NET_WM_STATE_SKIP_PAGER)
ewin->skip_ext_pager = 1;
else if (atom == _NET_WM_STATE_HIDDEN)
- ewin->iconified = 1;
+ ; /* ewin->iconified = 1; No - WM_STATE does this */
else if (atom == _NET_WM_STATE_MAXIMIZED_VERT)
ewin->ewmh_flags |= NET_WM_FLAG_MAXIMIZED_VERT;
else if (atom == _NET_WM_STATE_MAXIMIZED_HORZ)
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs