From 1c02ddb4a7d85eaa470ccd9ebcf0386c004621cc Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 18 Jun 2009 01:25:46 +0200 Subject: [PATCH] Bugfix: Fix assignment of clients to other workspaces (Thanks badboy) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5