]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Fix assignment of clients to other workspaces (Thanks badboy)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 17 Jun 2009 23:25:46 +0000 (01:25 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 17 Jun 2009 23:25:46 +0000 (01:25 +0200)
The problem was that the old_focused pointer was pointing to an element
of a different list. Using CIRCLEQ_APPEND_AFTER is not a good idea on
with such an element…

src/manage.c

index f7769c3bcb03178769f4a8bb00bfa93c42c47c6d..72c7bce16f7565571d5d7a907e3f6e7e3ac31ae5 100644 (file)
@@ -326,6 +326,8 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
 
                         new->container = t_ws->table[t_ws->current_col][t_ws->current_row];
                         new->workspace = t_ws;
+                        old_focused = new->container->currently_focused;
+
                         xcb_unmap_window(conn, new->frame);
                         break;
                 }