]> Dogcows Code - chaz/openbox/blob - openbox/actions/omnipresent.c
make omnipresent back into toggleomnipresent
[chaz/openbox] / openbox / actions / omnipresent.c
1 #include "openbox/actions.h"
2 #include "openbox/client.h"
3 #include "openbox/screen.h"
4
5 static gboolean run_func_toggle(ObActionsData *data, gpointer options);
6
7 void action_omnipresent_startup()
8 {
9 actions_register("ToggleOmnipresent", NULL, NULL, run_func_toggle,
10 NULL, NULL);
11 }
12
13 /* Always return FALSE because its not interactive */
14 static gboolean run_func_toggle(ObActionsData *data, gpointer options)
15 {
16 if (data->client)
17 client_set_desktop(data->client,
18 data->client->desktop == DESKTOP_ALL ?
19 screen_desktop : DESKTOP_ALL, FALSE, TRUE);
20 return FALSE;
21 }
This page took 0.035204 seconds and 5 git commands to generate.