X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fomnipresent.c;h=030a01592b9857df888dd768440cc964024de8eb;hb=df73dfa049b9d0bb81e09b27ecf678dce9b46301;hp=4f60b540ff9cae47bc888935645f778bd46c68bc;hpb=bea270cac543883d0d11f870e0285c5c3ba61266;p=chaz%2Fopenbox diff --git a/openbox/actions/omnipresent.c b/openbox/actions/omnipresent.c index 4f60b540..030a0159 100644 --- a/openbox/actions/omnipresent.c +++ b/openbox/actions/omnipresent.c @@ -4,7 +4,7 @@ static gboolean run_func_toggle(ObActionsData *data, gpointer options); -void action_omnipresent_startup() +void action_omnipresent_startup(void) { actions_register("ToggleOmnipresent", NULL, NULL, run_func_toggle, NULL, NULL); @@ -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; }