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-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=07df19094906256f930b614b9d16f9ea0a7211aa;p=chaz%2Fopenbox 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; }