X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fdecorations.c;h=f6fd2cbeb7762df6a5567a9459d959beefdc14fc;hb=5e282dae08be3b900e0337efa0fae8f3ffa92cd7;hp=fa5606d17781e255a142a69e8ed0fdd94882b5d4;hpb=ddea4dcedd81d8890f85c4cd49e4c95ee5e8f01b;p=chaz%2Fopenbox diff --git a/openbox/actions/decorations.c b/openbox/actions/decorations.c index fa5606d1..f6fd2cbe 100644 --- a/openbox/actions/decorations.c +++ b/openbox/actions/decorations.c @@ -5,12 +5,11 @@ static gboolean run_func_on(ObActionsData *data, gpointer options); static gboolean run_func_off(ObActionsData *data, gpointer options); static gboolean run_func_toggle(ObActionsData *data, gpointer options); -void action_decorations_startup() +void action_decorations_startup(void) { - actions_register("Decorate", NULL, NULL, run_func_on, NULL, NULL); - actions_register("Undecorate", NULL, NULL, run_func_off, NULL, NULL); - actions_register("ToggleDecorations", NULL, NULL, run_func_toggle, - NULL, NULL); + actions_register("Decorate", NULL, NULL, run_func_on); + actions_register("Undecorate", NULL, NULL, run_func_off); + actions_register("ToggleDecorations", NULL, NULL, run_func_toggle); } /* Always return FALSE because its not interactive */ @@ -18,7 +17,7 @@ static gboolean run_func_on(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); - client_set_undecorated(data->client, TRUE); + client_set_undecorated(data->client, FALSE); actions_client_move(data, FALSE); } return FALSE; @@ -29,7 +28,7 @@ static gboolean run_func_off(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); - client_set_undecorated(data->client, FALSE); + client_set_undecorated(data->client, TRUE); actions_client_move(data, FALSE); } return FALSE;