use actions to focus and raise the wnidow ni client_activate. this means the focus shit gets processed before the raise

This commit is contained in:
Dana Jansens 2003-09-26 17:29:55 +00:00
parent eb51015bc3
commit a2849a728d

View file

@ -1664,7 +1664,9 @@ static ObStackingLayer calc_layer(ObClient *self)
{ {
ObStackingLayer l; 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) else if (self->type == OB_CLIENT_TYPE_DESKTOP)
l = OB_STACKING_LAYER_DESKTOP; l = OB_STACKING_LAYER_DESKTOP;
else if (self->type == OB_CLIENT_TYPE_DOCK) { else if (self->type == OB_CLIENT_TYPE_DOCK) {
@ -2613,8 +2615,8 @@ void client_activate(ObClient *self, gboolean here)
return; return;
if (self->shaded) if (self->shaded)
client_shade(self, FALSE); client_shade(self, FALSE);
client_focus(self); action_run_string("Focus", self);
stacking_raise(CLIENT_AS_WINDOW(self)); action_run_string("Raise", self);
} }
gboolean client_focused(ObClient *self) gboolean client_focused(ObClient *self)