Author: olivier
Date: 2007-07-16 21:25:15 +0000 (Mon, 16 Jul 2007)
New Revision: 25920

Modified:
   xfwm4/trunk/src/netwm.c
Log:
Be compliant with EWMH standard that states: "If _NET_WM_WINDOW_TYPE is not 
set, then windows with WM_TRANSIENT_FOR set MUST be taken as 
NET_WM_WINDOW_TYPE_DIALOG". It shouldn't make much difference in xfwm4 though.


Modified: xfwm4/trunk/src/netwm.c
===================================================================
--- xfwm4/trunk/src/netwm.c     2007-07-15 20:03:43 UTC (rev 25919)
+++ xfwm4/trunk/src/netwm.c     2007-07-16 21:25:15 UTC (rev 25920)
@@ -782,6 +782,7 @@
     display_info = screen_info->display_info;
     n_atoms = 0;
     atoms = NULL;
+    c->type_atom = None;
 
     if (!getAtomList (display_info, c->window, NET_WM_WINDOW_TYPE, &atoms, 
&n_atoms))
     {
@@ -797,7 +798,14 @@
                 c->type_atom = display_info->atoms[NET_WM_WINDOW_TYPE_NORMAL];
                 break;
             default:
-                c->type_atom = None;
+                if (c->transient_for != None)
+                {
+                    c->type_atom = 
display_info->atoms[NET_WM_WINDOW_TYPE_DIALOG];
+                }
+                else
+                {
+                    c->type_atom = 
display_info->atoms[NET_WM_WINDOW_TYPE_NORMAL];
+                }
                 break;
         }
     }

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to