"fullscreen" windows that are undecorated by the user do not count as legacy fullscreen windows

This commit is contained in:
Dana Jansens 2007-05-17 00:50:09 +00:00
parent 48c3bc7cf8
commit 4fdf8a4315

View file

@ -2337,14 +2337,14 @@ static ObStackingLayer calc_layer(ObClient *self)
else l = OB_STACKING_LAYER_ABOVE; else l = OB_STACKING_LAYER_ABOVE;
} }
else if ((self->fullscreen || else if ((self->fullscreen ||
/* no decorations and fills the monitor = oldskool fullscreen */ /* No decorations and fills the monitor = oldskool fullscreen.
(self->frame != NULL && But not for undecorated windows, because the user can do that
self->decorations == 0 && */
(self->frame->size.right == 0 && self->frame->size.left == 0 && (self->decorations == 0 &&
self->frame->size.bottom == 0 && self->frame->size.top == 0 && !self->undecorated &&
RECT_EQUAL(self->area, RECT_EQUAL(self->area,
*screen_physical_area_monitor *screen_physical_area_monitor
(client_monitor(self)))))) && (client_monitor(self))))) &&
(client_focused(self) || client_search_focus_tree(self))) (client_focused(self) || client_search_focus_tree(self)))
l = OB_STACKING_LAYER_FULLSCREEN; l = OB_STACKING_LAYER_FULLSCREEN;
else if (self->above) l = OB_STACKING_LAYER_ABOVE; else if (self->above) l = OB_STACKING_LAYER_ABOVE;