]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions/decorations.c
Make nplurals=2 in Turkish translation since there are plurals translations
[chaz/openbox] / openbox / actions / decorations.c
index fa5606d17781e255a142a69e8ed0fdd94882b5d4..f6fd2cbeb7762df6a5567a9459d959beefdc14fc 100644 (file)
@@ -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;
This page took 0.020672 seconds and 4 git commands to generate.