]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Only consider tiling windows when attaching tiling windows to workspaces...
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Aug 2011 00:01:06 +0000 (02:01 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Aug 2011 00:01:06 +0000 (02:01 +0200)
Fixes #436

src/manage.c

index 8f31654e44a984a67fee2d95637dd73f2fe6fac0..3dcdbac87626e049c28a8b66af9236596336fbec 100644 (file)
@@ -223,7 +223,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
         if ((assignment = assignment_for(cwindow, A_TO_WORKSPACE | A_TO_OUTPUT))) {
             DLOG("Assignment matches (%p)\n", match);
             if (assignment->type == A_TO_WORKSPACE) {
-                nc = con_descend_focused(workspace_get(assignment->dest.workspace, NULL));
+                nc = con_descend_tiling_focused(workspace_get(assignment->dest.workspace, NULL));
                 DLOG("focused on ws %s: %p / %s\n", assignment->dest.workspace, nc, nc->name);
                 if (nc->type == CT_WORKSPACE)
                     nc = tree_open_con(nc, cwindow);