Fix moving windows to a marked workspace by mark.

When a window is moved to a mark and the marked container is a workspace,
we can skip any other logic and just call con_move_to_workspace directly.

fixes #2003
This commit is contained in:
Ingo Bürk 2015-10-16 21:07:16 +02:00 committed by Michael Stapelberg
parent bfd9960df2
commit ab9d74b434
1 changed files with 6 additions and 0 deletions

View File

@ -1020,6 +1020,12 @@ bool con_move_to_mark(Con *con, const char *mark) {
return true; return true;
} }
if (con->type == CT_WORKSPACE) {
DLOG("target container is a workspace, simply moving the container there.\n");
con_move_to_workspace(con, target, true, false, false);
return true;
}
/* For split containers, we use the currently focused container within it. /* For split containers, we use the currently focused container within it.
* This allows setting marks on, e.g., tabbed containers which will move * This allows setting marks on, e.g., tabbed containers which will move
* con to a new tab behind the focused tab. */ * con to a new tab behind the focused tab. */