]> Dogcows Code - chaz/openbox/blob - fullscreen.c
e1fdf232ab5e80038ada460a7ec1adcedff57f11
[chaz/openbox] / 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 }
10
11 /* Always return FALSE because its not interactive */
12 static gboolean run_func_toggle(ObActionsData *data, gpointer options)
13 {
14 if (data->client) {
15 actions_client_move(data, TRUE);
16 client_fullscreen(data->client, !data->client->fullscreen);
17 actions_client_move(data, FALSE);
18 }
19 return FALSE;
20 }
This page took 0.036454 seconds and 3 git commands to generate.