Added 'con_move_to_mark' to move a container to the container holding a certain mark.

This commit is contained in:
Ingo Bürk
2015-04-15 18:36:45 +02:00
parent 9ab4216787
commit 475671ae2a
3 changed files with 62 additions and 21 deletions

View File

@ -1100,12 +1100,10 @@ void cmd_unmark(I3_CMD, char *mark) {
}
DLOG("removed all window marks");
} else {
Con *con;
TAILQ_FOREACH(con, &all_cons, all_cons) {
if (con->mark && strcmp(con->mark, mark) == 0) {
FREE(con->mark);
con->mark_changed = true;
}
Con *con = con_by_mark(mark);
if (con != NULL) {
FREE(con->mark);
con->mark_changed = true;
}
DLOG("removed window mark %s\n", mark);
}