use client_raise/lower instead of action_run_string

This commit is contained in:
Dana Jansens 2003-09-26 18:18:15 +00:00
parent dfd524926e
commit 896098c961

View file

@ -862,13 +862,13 @@ static void event_handle_client(ObClient *client, XEvent *e)
switch (e->xconfigurerequest.detail) {
case Below:
case BottomIf:
action_run_string("Lower", client);
client_lower(client);
break;
case Above:
case TopIf:
default:
action_run_string("Raise", client);
client_raise(client);
break;
}
}
@ -904,16 +904,7 @@ static void event_handle_client(ObClient *client, XEvent *e)
ob_debug("MapRequest for 0x%lx\n", client->window);
if (!client->iconic) break; /* this normally doesn't happen, but if it
does, we don't want it! */
if (screen_showing_desktop)
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));
client_activate(client, FALSE);
break;
case ClientMessage:
/* validate cuz we query stuff off the client here */
@ -1257,7 +1248,7 @@ static gboolean focus_delay_func(gpointer data)
client_focus(c);
if (config_focus_raise)
stacking_raise(CLIENT_AS_WINDOW(c));
client_raise(c);
return FALSE; /* no repeat */
}