use client_raise/lower instead of action_run_string
This commit is contained in:
parent
dfd524926e
commit
896098c961
1 changed files with 91 additions and 100 deletions
|
@ -862,13 +862,13 @@ static void event_handle_client(ObClient *client, XEvent *e)
|
||||||
switch (e->xconfigurerequest.detail) {
|
switch (e->xconfigurerequest.detail) {
|
||||||
case Below:
|
case Below:
|
||||||
case BottomIf:
|
case BottomIf:
|
||||||
action_run_string("Lower", client);
|
client_lower(client);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Above:
|
case Above:
|
||||||
case TopIf:
|
case TopIf:
|
||||||
default:
|
default:
|
||||||
action_run_string("Raise", client);
|
client_raise(client);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -904,16 +904,7 @@ static void event_handle_client(ObClient *client, XEvent *e)
|
||||||
ob_debug("MapRequest for 0x%lx\n", client->window);
|
ob_debug("MapRequest for 0x%lx\n", client->window);
|
||||||
if (!client->iconic) break; /* this normally doesn't happen, but if it
|
if (!client->iconic) break; /* this normally doesn't happen, but if it
|
||||||
does, we don't want it! */
|
does, we don't want it! */
|
||||||
if (screen_showing_desktop)
|
client_activate(client, FALSE);
|
||||||
screen_show_desktop(FALSE);
|
|
||||||
client_iconify(client, FALSE, TRUE);
|
|
||||||
if (!client->frame->visible)
|
|
||||||
/* if its not visible still, then don't mess with it */
|
|
||||||
break;
|
|
||||||
if (client->shaded)
|
|
||||||
client_shade(client, FALSE);
|
|
||||||
client_focus(client);
|
|
||||||
stacking_raise(CLIENT_AS_WINDOW(client));
|
|
||||||
break;
|
break;
|
||||||
case ClientMessage:
|
case ClientMessage:
|
||||||
/* validate cuz we query stuff off the client here */
|
/* validate cuz we query stuff off the client here */
|
||||||
|
@ -1257,7 +1248,7 @@ static gboolean focus_delay_func(gpointer data)
|
||||||
|
|
||||||
client_focus(c);
|
client_focus(c);
|
||||||
if (config_focus_raise)
|
if (config_focus_raise)
|
||||||
stacking_raise(CLIENT_AS_WINDOW(c));
|
client_raise(c);
|
||||||
return FALSE; /* no repeat */
|
return FALSE; /* no repeat */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue