]> Dogcows Code - chaz/openbox/blobdiff - openbox/action.c
add disabled buttons, instead of now showing buttons at all when they wont do anythin...
[chaz/openbox] / openbox / action.c
index 7c98f7a627724141a6b70c7d02f4b7a05d6690d9..a14ea7cce6f0a8d3f7ca80570d2e22e182927e46 100644 (file)
@@ -1105,7 +1105,7 @@ void action_toggle_decorations(union ActionData *data)
 
     if (!c) return;
 
-    c->disabled_decorations = c->disabled_decorations ? 0 : ~0;
+    c->decorate = !c->decorate;
     client_setup_decor_and_functions(c);
 }
 
@@ -1121,13 +1121,12 @@ void action_moveresize(union ActionData *data)
 
 void action_restart(union ActionData *data)
 {
-    ob_restart_path = g_strdup(data->execute.path);
-    ob_shutdown = ob_restart = TRUE;
+    ob_restart_other(data->execute.path);
 }
 
 void action_exit(union ActionData *data)
 {
-    ob_shutdown = TRUE;
+    ob_exit();
 }
 
 void action_showmenu(union ActionData *data)
This page took 0.023197 seconds and 4 git commands to generate.