]> Dogcows Code - chaz/openbox/commitdiff
don't change stacking stuff on windows when moving them during the unmanage phase.
authorDana Jansens <danakj@orodu.net>
Tue, 20 Apr 2010 19:20:46 +0000 (15:20 -0400)
committerDana Jansens <danakj@orodu.net>
Tue, 20 Apr 2010 19:20:46 +0000 (15:20 -0400)
openbox/client.c

index 605a191ff03129ad7fb232c839d9312c3b123da5..cc691718e8b4cd3179fd3581281fe6c06cacd008 100644 (file)
@@ -3128,11 +3128,16 @@ void client_configure(ObClient *self, gint x, gint y, gint w, gint h,
     /* if it moved between monitors, then this can affect the stacking
        layer of this window or others - for fullscreen windows.
        also if it changed to/from oldschool fullscreen then its layer may
-       change */
-    if (screen_find_monitor(&self->frame->area) !=
-        screen_find_monitor(&oldframe) ||
-        (final && (client_is_oldfullscreen(self, &oldclient) !=
-                   client_is_oldfullscreen(self, &self->area))))
+       change
+
+       watch out tho, don't try change stacking stuff if the window is no
+       longer being managed !
+    */
+    if (self->managed &&
+        (screen_find_monitor(&self->frame->area) !=
+         screen_find_monitor(&oldframe) ||
+         (final && (client_is_oldfullscreen(self, &oldclient) !=
+                    client_is_oldfullscreen(self, &self->area)))))
     {
         client_calc_layer(self);
     }
This page took 0.027006 seconds and 4 git commands to generate.