From: Dana Jansens Date: Fri, 13 Jul 2007 15:24:26 +0000 (-0400) Subject: don't move focus if the window appears or disappears X-Git-Tag: release-3.4.3~36^2~20 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=07df19094906256f930b614b9d16f9ea0a7211aa;p=dana%2Fopenbox.git don't move focus if the window appears or disappears --- diff --git a/openbox/actions/omnipresent.c b/openbox/actions/omnipresent.c index 4f60b540..b6ba1622 100644 --- a/openbox/actions/omnipresent.c +++ b/openbox/actions/omnipresent.c @@ -13,9 +13,12 @@ void action_omnipresent_startup() /* Always return FALSE because its not interactive */ 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, data->client->desktop == DESKTOP_ALL ? screen_desktop : DESKTOP_ALL, FALSE, TRUE); + actions_client_move(data, FALSE); + } return FALSE; }