]> git.sur5r.net Git - i3/i3/blobdiff - src/con.c
Fix crash when moving container to marked workspace
[i3/i3] / src / con.c
index 2180ad8816ab005af8fd3e1b5175e112a4de897d..deb6555846d05311acd05269a7e84fca53e45bad 100644 (file)
--- a/src/con.c
+++ b/src/con.c
@@ -1305,7 +1305,7 @@ bool con_move_to_mark(Con *con, const char *mark) {
         return true;
     }
 
-    if (con->type == CT_WORKSPACE) {
+    if (target->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;