fix incorrect reply to ipc command (#2567)

This commit is contained in:
mihaicmn 2016-11-15 19:26:53 +02:00 committed by Michael Stapelberg
parent 9108f3214c
commit da5fe3b934
1 changed files with 6 additions and 2 deletions

View 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;