[Xfce4-commits] <xfwm4:libxfce4ui> Treat utility and dialog windows with an invalid window for transient as transients for group

Jérôme Guelfucci noreply at xfce.org
Sat Feb 27 01:04:18 CET 2010


Updating branch refs/heads/libxfce4ui
         to 1b84cb5d4d2770003f66629428fdb4000b060227 (commit)
       from 643b0f8a0e55afd2c88bccce74d234c3dabbad6e (commit)

commit 1b84cb5d4d2770003f66629428fdb4000b060227
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Wed Feb 24 14:04:55 2010 +0100

    Treat utility and dialog windows with an invalid window for transient as transients for group

 src/netwm.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/netwm.c b/src/netwm.c
index e9cf071..0a42f02 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -1248,8 +1248,10 @@ clientWindowType (Client * c)
             c->type = WINDOW_DIALOG;
             c->initial_layer = WIN_LAYER_NORMAL;
             /* Treat DIALOG without transient_for set as transient for group */
-            if (c->transient_for == None)
+            if ((c->transient_for == None) || (!clientGetTransient (c)))
             {
+                TRACE ("Invalid transient 0x%lx specified for dialog window 0x%lx (%s)",
+                       c->transient_for, c->window, c->name);
                 c->transient_for = c->screen_info->xroot;
             }
         }
@@ -1267,8 +1269,10 @@ clientWindowType (Client * c)
             c->type = WINDOW_UTILITY;
             c->initial_layer = WIN_LAYER_NORMAL;
             /* Treat UTILITY without transient_for set as transient for group */
-            if (c->transient_for == None)
+            if ((c->transient_for == None) || (!clientGetTransient (c)))
             {
+                TRACE ("Invalid transient 0x%lx specified for utility window 0x%lx (%s)",
+                       c->transient_for, c->window, c->name);
                 c->transient_for = c->screen_info->xroot;
             }
         }



More information about the Xfce4-commits mailing list