From: Michael Stapelberg Date: Wed, 17 Jun 2009 23:25:46 +0000 (+0200) Subject: Bugfix: Fix assignment of clients to other workspaces (Thanks badboy) X-Git-Tag: 3.b~52 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1c02ddb4a7d85eaa470ccd9ebcf0386c004621cc;p=i3%2Fi3 Bugfix: Fix assignment of clients to other workspaces (Thanks badboy) 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… --- diff --git a/src/manage.c b/src/manage.c index f7769c3b..72c7bce1 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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; }