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

Olivier Fourdan noreply at xfce.org
Wed Feb 24 19:38:02 CET 2010


Updating branch refs/heads/master
         to 6b385d5f53ce84fa05ba66955be0b3f5b7d794e4 (commit)
       from c09471fa5f99207d8356357d63b8da9afcf2f9be (commit)

commit 6b385d5f53ce84fa05ba66955be0b3f5b7d794e4
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