X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fomnipresent.c;h=4309acc642231a0ee35f555af2108d060a2a9720;hb=0a7ff45e4930a72968911325a019f0ea64b62a43;hp=4f60b540ff9cae47bc888935645f778bd46c68bc;hpb=bea270cac543883d0d11f870e0285c5c3ba61266;p=chaz%2Fopenbox diff --git a/openbox/actions/omnipresent.c b/openbox/actions/omnipresent.c index 4f60b540..4309acc6 100644 --- a/openbox/actions/omnipresent.c +++ b/openbox/actions/omnipresent.c @@ -4,18 +4,20 @@ 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); + actions_register("ToggleOmnipresent", NULL, NULL, run_func_toggle); } /* 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; }