From ab9d74b434c22a860a3073ad9c7f39aec40b243d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20B=C3=BCrk?= Date: Fri, 16 Oct 2015 21:07:16 +0200 Subject: [PATCH] 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 --- src/con.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/con.c b/src/con.c index d1148301..5b0cc6c8 100644 --- a/src/con.c +++ b/src/con.c @@ -1020,6 +1020,12 @@ bool con_move_to_mark(Con *con, const char *mark) { 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. * This allows setting marks on, e.g., tabbed containers which will move * con to a new tab behind the focused tab. */