1 #include "openbox/actions.h"
2 #include "openbox/client.h"
3 #include "openbox/screen.h"
5 static gboolean run_func_toggle(ObActionsData *data, gpointer options);
7 void action_omnipresent_startup()
9 actions_register("ToggleOmnipresent", NULL, NULL, run_func_toggle,
13 /* Always return FALSE because its not interactive */
14 static gboolean run_func_toggle(ObActionsData *data, gpointer options)
17 actions_client_move(data, TRUE);
18 client_set_desktop(data->client,
19 data->client->desktop == DESKTOP_ALL ?
20 screen_desktop : DESKTOP_ALL, FALSE, TRUE);
21 actions_client_move(data, FALSE);