summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-17 00:50:09 +0000
committerDana Jansens <danakj@orodu.net>2007-05-17 00:50:09 +0000
commit4fdf8a431538eece230016ec2e0fd94d62fcec93 (patch)
tree5a5736ab4b655d8c805a2cffaf2cbcf8b100daa1 /openbox
parent48c3bc7cf8baa5df18d7f3ac6dddc50eaa27ee92 (diff)
"fullscreen" windows that are undecorated by the user do not count as legacy fullscreen windows
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 9bf378e1..c4dc86f5 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -2337,14 +2337,14 @@ static ObStackingLayer calc_layer(ObClient *self)
else l = OB_STACKING_LAYER_ABOVE;
}
else if ((self->fullscreen ||
- /* no decorations and fills the monitor = oldskool fullscreen */
- (self->frame != NULL &&
- self->decorations == 0 &&
- (self->frame->size.right == 0 && self->frame->size.left == 0 &&
- self->frame->size.bottom == 0 && self->frame->size.top == 0 &&
- RECT_EQUAL(self->area,
- *screen_physical_area_monitor
- (client_monitor(self)))))) &&
+ /* No decorations and fills the monitor = oldskool fullscreen.
+ But not for undecorated windows, because the user can do that
+ */
+ (self->decorations == 0 &&
+ !self->undecorated &&
+ RECT_EQUAL(self->area,
+ *screen_physical_area_monitor
+ (client_monitor(self))))) &&
(client_focused(self) || client_search_focus_tree(self)))
l = OB_STACKING_LAYER_FULLSCREEN;
else if (self->above) l = OB_STACKING_LAYER_ABOVE;