From 94ee39d1ce8e5d3a8e2349542837b18112eea09b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 27 May 2009 12:27:29 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Forgot=20to=20update=20client?= =?UTF-8?q?=E2=80=99s=20workspace=20pointer=20(Thanks=20Mirko)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.c b/src/commands.c index f54787a9..d3ef90f2 100644 --- a/src/commands.c +++ b/src/commands.c @@ -251,6 +251,7 @@ static void move_current_window(xcb_connection_t *conn, direction_t direction) { /* Update data structures */ current_client->container = new; + current_client->workspace = new->workspace; container->currently_focused = to_focus; new->currently_focused = current_client; @@ -517,6 +518,7 @@ static void move_current_window_to_workspace(xcb_connection_t *conn, int workspa LOG("Moved.\n"); current_client->container = to_container; + current_client->workspace = to_container->workspace; container->currently_focused = to_focus; to_container->currently_focused = current_client;