1 #include "openbox/action.h"
2 #include "openbox/client.h"
4 static gboolean run_func_toggle(ObActionData *data, gpointer options);
6 void action_fullscreen_startup(void)
8 action_register("ToggleFullscreen", NULL, NULL, run_func_toggle);
11 /* Always return FALSE because its not interactive */
12 static gboolean run_func_toggle(ObActionData *data, gpointer options)
15 action_client_move(data, TRUE);
16 client_fullscreen(data->client, !data->client->fullscreen);
17 action_client_move(data, FALSE);