summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-06 09:10:09 +0000
committerDana Jansens <danakj@orodu.net>2007-05-06 09:10:09 +0000
commit0fc06816aaa8fcbec2effd7f0981ea6529c8145c (patch)
treeb186e1bd1a42fc3c1a1aef2e862078ef19c4192f /openbox
parent277db2822d79a6000d31b93ec963ae87286d6ade (diff)
don't make the desktop fullscreen
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 4672b8cb..210307c3 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -2183,22 +2183,22 @@ static ObStackingLayer calc_layer(ObClient *self)
{
ObStackingLayer l;
- if ((self->fullscreen ||
- /* no decorations and fills the monitor means oldskool fullscreen */
- (self->frame != NULL &&
- (self->frame->size.top == 0 && self->frame->size.left == 0 &&
- self->frame->size.bottom == 0 && self->frame->size.right == 0 &&
- 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->type == OB_CLIENT_TYPE_DESKTOP)
+ if (self->type == OB_CLIENT_TYPE_DESKTOP)
l = OB_STACKING_LAYER_DESKTOP;
else if (self->type == OB_CLIENT_TYPE_DOCK) {
if (self->below) l = OB_STACKING_LAYER_NORMAL;
else l = OB_STACKING_LAYER_ABOVE;
}
+ else if ((self->fullscreen ||
+ /* no decorations and fills the monitor = oldskool fullscreen */
+ (self->frame != NULL &&
+ (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)))))) &&
+ (client_focused(self) || client_search_focus_tree(self)))
+ l = OB_STACKING_LAYER_FULLSCREEN;
else if (self->above) l = OB_STACKING_LAYER_ABOVE;
else if (self->below) l = OB_STACKING_LAYER_BELOW;
else l = OB_STACKING_LAYER_NORMAL;