Let "focus" report success depending on whether a window was matched.

fixes #1809
This commit is contained in:
Ingo Bürk
2015-09-11 08:26:33 +02:00
parent c9b6ec71aa
commit f31e476b28
2 changed files with 8 additions and 43 deletions

View File

@ -1507,8 +1507,7 @@ void cmd_focus(I3_CMD) {
count);
cmd_output->needs_tree_render = true;
// XXX: default reply for now, make this a better reply
ysuccess(true);
ysuccess(count > 0);
}
/*