Bugfix: Forgot to update client’s workspace pointer (Thanks Mirko)

This commit is contained in:
Michael Stapelberg 2009-05-27 12:27:29 +02:00
parent b35b9d2e10
commit 2ed621aec9
1 changed files with 2 additions and 0 deletions

View 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;