Merge pull request #3230 from hwangcc23/fix-3227

Make "scratchpad show" return correct info
This commit is contained in:
Ingo Bürk
2018-04-21 17:57:54 +02:00
committed by GitHub
4 changed files with 61 additions and 12 deletions

View File

@ -1833,19 +1833,20 @@ void cmd_move_scratchpad(I3_CMD) {
void cmd_scratchpad_show(I3_CMD) {
DLOG("should show scratchpad window\n");
owindow *current;
bool result = false;
if (match_is_empty(current_match)) {
scratchpad_show(NULL);
result = scratchpad_show(NULL);
} else {
TAILQ_FOREACH(current, &owindows, owindows) {
DLOG("matching: %p / %s\n", current->con, current->con->name);
scratchpad_show(current->con);
result |= scratchpad_show(current->con);
}
}
cmd_output->needs_tree_render = true;
// XXX: default reply for now, make this a better reply
ysuccess(true);
ysuccess(result);
}
/*