From 1eb727064a4ad19c89b55d08d68e8d4b85c0b1d7 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 22 Jun 2007 14:39:01 +0000 Subject: add the fullscreen action --- openbox/actions/fullscreen.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 openbox/actions/fullscreen.c (limited to 'openbox/actions/fullscreen.c') diff --git a/openbox/actions/fullscreen.c b/openbox/actions/fullscreen.c new file mode 100644 index 00000000..c791191e --- /dev/null +++ b/openbox/actions/fullscreen.c @@ -0,0 +1,24 @@ +#include "openbox/actions.h" +#include "openbox/client.h" + +static gboolean run_func(ObActionsData *data, gpointer options); + +void action_fullscreen_startup() +{ + actions_register("Fullscreen", + NULL, NULL, + run_func, + NULL, NULL); +} + +/* Always return FALSE because its not interactive */ +static gboolean run_func(ObActionsData *data, gpointer options) +{ + if (data->client) { + actions_client_move(data, TRUE); + client_fullscreen(data->client, !data->client->fullscreen); + actions_client_move(data, FALSE); + } + + return FALSE; +} -- cgit v1.2.3