]> Dogcows Code - chaz/openbox/commitdiff
"fullscreen" windows that are undecorated by the user do not count as legacy fullscre...
authorDana Jansens <danakj@orodu.net>
Thu, 17 May 2007 00:50:09 +0000 (00:50 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 17 May 2007 00:50:09 +0000 (00:50 +0000)
openbox/client.c

index 9bf378e191c2b760a89c23a110f5536e3726ef0d..c4dc86f574650305ff20d25f174768b5eaa04d39 100644 (file)
@@ -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;
This page took 0.026774 seconds and 4 git commands to generate.