]> Dogcows Code - chaz/openbox/blob - openbox/actions/fullscreen.c
7579b95d17005c8b354c7ba7d1b6b067ffecee8d
[chaz/openbox] / openbox / actions / fullscreen.c
1 #include "openbox/actions.h"
2 #include "openbox/client.h"
3
4 static gboolean run_func_toggle(ObActionsData *data, gpointer options);
5
6 void action_fullscreen_startup(void)
7 {
8 actions_register("ToggleFullscreen", NULL, NULL, run_func_toggle,
9 NULL, NULL);
10 }
11
12 /* Always return FALSE because its not interactive */
13 static gboolean run_func_toggle(ObActionsData *data, gpointer options)
14 {
15 if (data->client) {
16 actions_client_move(data, TRUE);
17 client_fullscreen(data->client, !data->client->fullscreen);
18 actions_client_move(data, FALSE);
19 }
20 return FALSE;
21 }
This page took 0.032639 seconds and 3 git commands to generate.