]> 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:27:29 +0000 (12:27 +0200)
src/commands.c

index f54787a9e9a56f5fea09859662454121fdc158d5..d3ef90f204aa31e43d37a4381a6015ee36a4dd6c 100644 (file)
@@ -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;