]> Dogcows Code - chaz/openbox/commitdiff
use actions to focus and raise the wnidow ni client_activate. this means the focus...
authorDana Jansens <danakj@orodu.net>
Fri, 26 Sep 2003 17:29:55 +0000 (17:29 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 26 Sep 2003 17:29:55 +0000 (17:29 +0000)
openbox/client.c

index 4fa62190bde6362cd9edeb8c680527da5d5b0339..725416bb922d4a59e14e576f2b4a49375d245199 100644 (file)
@@ -1664,7 +1664,9 @@ static ObStackingLayer calc_layer(ObClient *self)
 {
     ObStackingLayer l;
 
-    if (self->fullscreen) l = OB_STACKING_LAYER_FULLSCREEN;
+    if (self->fullscreen &&
+        (client_focused(self) || client_search_focus_tree(self)))
+        l = OB_STACKING_LAYER_FULLSCREEN;
     else if (self->type == OB_CLIENT_TYPE_DESKTOP)
         l = OB_STACKING_LAYER_DESKTOP;
     else if (self->type == OB_CLIENT_TYPE_DOCK) {
@@ -2613,8 +2615,8 @@ void client_activate(ObClient *self, gboolean here)
         return;
     if (self->shaded)
         client_shade(self, FALSE);
-    client_focus(self);
-    stacking_raise(CLIENT_AS_WINDOW(self));
+    action_run_string("Focus", self);
+    action_run_string("Raise", self);
 }
 
 gboolean client_focused(ObClient *self)
This page took 0.024698 seconds and 4 git commands to generate.