X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Ffullscreen.c;h=7579b95d17005c8b354c7ba7d1b6b067ffecee8d;hb=90cecafa3de2f118e550622932d1d30266c71226;hp=c791191ee56c318846b05463c0e30049b64acac5;hpb=1eb727064a4ad19c89b55d08d68e8d4b85c0b1d7;p=chaz%2Fopenbox diff --git a/openbox/actions/fullscreen.c b/openbox/actions/fullscreen.c index c791191e..7579b95d 100644 --- a/openbox/actions/fullscreen.c +++ b/openbox/actions/fullscreen.c @@ -1,24 +1,21 @@ #include "openbox/actions.h" #include "openbox/client.h" -static gboolean run_func(ObActionsData *data, gpointer options); +static gboolean run_func_toggle(ObActionsData *data, gpointer options); -void action_fullscreen_startup() +void action_fullscreen_startup(void) { - actions_register("Fullscreen", - NULL, NULL, - run_func, + actions_register("ToggleFullscreen", NULL, NULL, run_func_toggle, NULL, NULL); } /* Always return FALSE because its not interactive */ -static gboolean run_func(ObActionsData *data, gpointer options) +static gboolean run_func_toggle(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; }