don't move focus if the window appears or disappears

This commit is contained in:
Dana Jansens 2007-07-13 11:24:26 -04:00
parent bea270cac5
commit 07df190949

View file

@ -13,9 +13,12 @@ void action_omnipresent_startup()
/* Always return FALSE because its not interactive */ /* Always return FALSE because its not interactive */
static gboolean run_func_toggle(ObActionsData *data, gpointer options) static gboolean run_func_toggle(ObActionsData *data, gpointer options)
{ {
if (data->client) if (data->client) {
actions_client_move(data, TRUE);
client_set_desktop(data->client, client_set_desktop(data->client,
data->client->desktop == DESKTOP_ALL ? data->client->desktop == DESKTOP_ALL ?
screen_desktop : DESKTOP_ALL, FALSE, TRUE); screen_desktop : DESKTOP_ALL, FALSE, TRUE);
actions_client_move(data, FALSE);
}
return FALSE; return FALSE;
} }