]> Dogcows Code - chaz/openbox/commitdiff
only keep fullscreen windows on top while they are focused
authorDana Jansens <danakj@orodu.net>
Sun, 13 Apr 2003 21:46:31 +0000 (21:46 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 13 Apr 2003 21:46:31 +0000 (21:46 +0000)
openbox/client.c

index 6f9a753e9cf2bdb98c255c168b1b2bbf9bbbb0af..519c41b976755360b92eaca9ded711fdda84708f 100644 (file)
@@ -1306,24 +1306,9 @@ void client_calc_layer(Client *self)
     gboolean fs;
     Client *c;
 
-    /* are we fullscreen, or do we have a fullscreen transient parent? */
-    c = self;
-    fs = FALSE;
-    while (c && c != TRAN_GROUP) { /* XXX do smthng with the TRAN_GROUP case?*/
-       if (c->fullscreen) {
-           fs = TRUE;
-           break;
-       }
-       c = c->transient_for;
-    }
-    if (!fs && self->fullscreen) {
-       /* is one of our transients focused? */
-       c = search_focus_tree(self, self);
-       if (c != NULL) fs = TRUE;
-    }
-  
     if (self->iconic) l = Layer_Icon;
-    else if (fs) l = Layer_Fullscreen;
+    /* fullscreen windows are only in the fullscreen layer while focused */
+    else if (self->fullscreen && focus_client == self) l = Layer_Fullscreen;
     else if (self->type == Type_Desktop) l = Layer_Desktop;
     else if (self->type == Type_Dock) {
        if (!self->below) l = Layer_Top;
This page took 0.029511 seconds and 4 git commands to generate.