From: Michael Stapelberg Date: Wed, 27 May 2009 10:27:29 +0000 (+0200) Subject: Bugfix: Forgot to update client’s workspace pointer (Thanks Mirko) X-Git-Tag: 3.c~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ed621aec9b56bd0a389cb12c141d1c162bd6925;p=i3%2Fi3 Bugfix: Forgot to update client’s workspace pointer (Thanks Mirko) --- diff --git a/src/commands.c b/src/commands.c index 638194a3..05567a2a 100644 --- a/src/commands.c +++ b/src/commands.c @@ -249,6 +249,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; @@ -469,6 +470,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;