From: Dana Jansens Date: Tue, 20 Apr 2010 19:39:23 +0000 (-0400) Subject: don't restack windows that are not managed, or they get readded to the stacking list. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=3b31090f88bc4a0246796b09b52a630d66a50d5c;p=mikachu%2Fopenbox.git don't restack windows that are not managed, or they get readded to the stacking list. this would cause a crash if closing a window that was moved to a different monitor while being fullscreen. --- diff --git a/openbox/client.c b/openbox/client.c index 5c5b765b..2d6885dc 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -3176,7 +3176,8 @@ 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 */ - if (screen_find_monitor(&self->frame->area) != + if (self->managed && + screen_find_monitor(&self->frame->area) != screen_find_monitor(&oldframe)) { client_calc_layer(self);