this would cause a crash if closing a window that was moved to a different monitor while being fullscreen.
/* if it moved between monitors, then this can affect the stacking
layer of this window or others - for fullscreen windows */
/* 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);
screen_find_monitor(&oldframe))
{
client_calc_layer(self);