From: Michael Stapelberg Date: Fri, 26 Aug 2011 00:01:06 +0000 (+0200) Subject: Bugfix: Only consider tiling windows when attaching tiling windows to workspaces... X-Git-Tag: 4.0.2~19^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7741608a9d9c089df49f54085d4be4e78e3858f0;p=i3%2Fi3 Bugfix: Only consider tiling windows when attaching tiling windows to workspaces (Thanks Tucos) Fixes #436 --- diff --git a/src/manage.c b/src/manage.c index 8f31654e..3dcdbac8 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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);