]> git.sur5r.net Git - i3/i3/blobdiff - src/manage.c
Allow assign to output
[i3/i3] / src / manage.c
index 8087d563faf264ce2f0d6b3722d31bbd84c21ec6..d12ce8d6e11c8b475bc0068738df87994f2b032b 100644 (file)
@@ -322,6 +322,10 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
             } else
                 nc = tree_open_con(NULL, cwindow);
         }
+
+        if ((assignment = assignment_for(cwindow, A_TO_OUTPUT))) {
+            con_move_to_output_name(nc, assignment->dest.output, true);
+        }
     } else {
         /* M_BELOW inserts the new window as a child of the one which was
          * matched (e.g. dock areas) */