]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Forgot to update client’s workspace pointer (Thanks Mirko)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 27 May 2009 10:27:29 +0000 (12:27 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 27 May 2009 10:28:51 +0000 (12:28 +0200)
src/commands.c

index 638194a337bf50720e835ea23de9d2ea0d32f3e1..05567a2a1ef0e31be34c7f13e240a14ecc025419 100644 (file)
@@ -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;