From: Ingo Bürk Date: Tue, 14 Apr 2015 15:57:33 +0000 (+0200) Subject: Implement the command 'move container to mark ' using 'con_move_to_mark'. X-Git-Tag: 4.11~129^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94bbdc9159f43181f9d9069893e812c1226eda00;p=i3%2Fi3 Implement the command 'move container to mark ' using 'con_move_to_mark'. --- diff --git a/src/commands.c b/src/commands.c index 736c4027..adfffe5f 100644 --- a/src/commands.c +++ b/src/commands.c @@ -1172,7 +1172,19 @@ void cmd_move_con_to_output(I3_CMD, char *name) { * */ void cmd_move_con_to_mark(I3_CMD, char *mark) { - ysuccess(true); + DLOG("moving window to mark \"%s\"\n", mark); + + HANDLE_EMPTY_MATCH; + + bool result = true; + owindow *current; + TAILQ_FOREACH(current, &owindows, owindows) { + DLOG("moving matched window %p / %s to mark \"%s\"\n", current->con, current->con->name, mark); + result &= con_move_to_mark(current->con, mark); + } + + cmd_output->needs_tree_render = true; + ysuccess(result); } /*