about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 9b4d6635..35e424b9 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -689,7 +689,7 @@ cmd_wins(gchar **args, struct cmd_help_t help)
     if (args[0] == NULL) {
         cons_show_wins();
     } else if (strcmp(args[0], "tidy") == 0) {
-        if ( ui_tidy_wins() ) {
+        if (ui_tidy_wins()) {
             cons_show("Windows tidied.");
         } else {
             cons_show("No tidy needed.");
@@ -727,7 +727,7 @@ cmd_winstidy(gchar **args, struct cmd_help_t help)
 {
     gboolean result = _cmd_set_boolean_preference(args[0], help, "Wins Auto Tidy", PREF_WINS_AUTO_TIDY);
 
-    if( result ) {
+    if (result && g_strcmp0(args[0], "on") == 0) {
         ui_tidy_wins();
     }
 
@@ -3260,7 +3260,6 @@ cmd_close(gchar **args, struct cmd_help_t help)
 
     // Tidy up the window list.
     if (prefs_get_boolean(PREF_WINS_AUTO_TIDY)) {
-        // TODO: Any benefit of checking the return value?
         ui_tidy_wins();
     }