summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-26 17:29:55 +0000
committerDana Jansens <danakj@orodu.net>2003-09-26 17:29:55 +0000
commita2849a728df4e71443d74ea20a6823db28ba4396 (patch)
tree9301b931a9d53a3cc0423014ff9a199789e1d958 /openbox/client.c
parenteb51015bc39dead34d041ab48fec51a56ba99e7a (diff)
use actions to focus and raise the wnidow ni client_activate. this means the focus shit gets processed before the raise
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 4fa62190..725416bb 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -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)