From: mihaicmn Date: Tue, 15 Nov 2016 17:26:53 +0000 (+0200) Subject: fix incorrect reply to ipc command (#2567) X-Git-Tag: 4.14~97 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da5fe3b93463b70887c20f79cf0c6054e69cdb04;p=i3%2Fi3 fix incorrect reply to ipc command (#2567) --- diff --git a/src/commands.c b/src/commands.c index 70622b7d..2387ddd7 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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;