Bugfix: Forgot to update client’s workspace pointer (Thanks Mirko)
This commit is contained in:
parent
bcd68d9ca1
commit
94ee39d1ce
|
@ -251,6 +251,7 @@ static void move_current_window(xcb_connection_t *conn, direction_t direction) {
|
||||||
|
|
||||||
/* Update data structures */
|
/* Update data structures */
|
||||||
current_client->container = new;
|
current_client->container = new;
|
||||||
|
current_client->workspace = new->workspace;
|
||||||
container->currently_focused = to_focus;
|
container->currently_focused = to_focus;
|
||||||
new->currently_focused = current_client;
|
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");
|
LOG("Moved.\n");
|
||||||
|
|
||||||
current_client->container = to_container;
|
current_client->container = to_container;
|
||||||
|
current_client->workspace = to_container->workspace;
|
||||||
container->currently_focused = to_focus;
|
container->currently_focused = to_focus;
|
||||||
to_container->currently_focused = current_client;
|
to_container->currently_focused = current_client;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue