]> git.sur5r.net Git - i3/i3/commitdiff
fix incorrect reply to ipc command (#2567)
authormihaicmn <mihai.cmn@gmail.com>
Tue, 15 Nov 2016 17:26:53 +0000 (19:26 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 15 Nov 2016 17:26:53 +0000 (09:26 -0800)
src/commands.c

index 70622b7db15ca608a3b19ffe870f2afcfdd4c264..2387ddd7fd06615e6e0070075e4d7a33f99d6900 100644 (file)
@@ -893,8 +893,10 @@ void cmd_workspace_number(I3_CMD, const char *which, const char *_no_auto_back_a
         cmd_output->needs_tree_render = true;
         return;
     }
-    if (!no_auto_back_and_forth && maybe_back_and_forth(cmd_output, workspace->name))
+    if (!no_auto_back_and_forth && maybe_back_and_forth(cmd_output, workspace->name)) {
+        ysuccess(true);
         return;
+    }
     workspace_show(workspace);
 
     cmd_output->needs_tree_render = true;
@@ -940,8 +942,10 @@ void cmd_workspace_name(I3_CMD, const char *name, const char *_no_auto_back_and_
     }
 
     DLOG("should switch to workspace %s\n", name);
-    if (!no_auto_back_and_forth && maybe_back_and_forth(cmd_output, name))
+    if (!no_auto_back_and_forth && maybe_back_and_forth(cmd_output, name)) {
+        ysuccess(true);
         return;
+    }
     workspace_show_by_name(name);
 
     cmd_output->needs_tree_render = true;