X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Ffullscreen.c;h=e1fdf232ab5e80038ada460a7ec1adcedff57f11;hb=HEAD;hp=c791191ee56c318846b05463c0e30049b64acac5;hpb=1eb727064a4ad19c89b55d08d68e8d4b85c0b1d7;p=chaz%2Fopenbox diff --git a/openbox/actions/fullscreen.c b/openbox/actions/fullscreen.c index c791191e..e1fdf232 100644 --- a/openbox/actions/fullscreen.c +++ b/openbox/actions/fullscreen.c @@ -1,24 +1,20 @@ #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, - NULL, NULL); + actions_register("ToggleFullscreen", NULL, NULL, run_func_toggle); } /* 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; }