Bugfix: Reconfigure x/y of stack_windows when necessary

This commit is contained in:
Michael Stapelberg
2009-03-04 21:49:29 +01:00
parent 8fe84697f3
commit 03e48b8bfe
6 changed files with 42 additions and 32 deletions

View File

@ -118,12 +118,8 @@ static void move_columns_from(xcb_connection_t *conn, Workspace *workspace, int
CIRCLEQ_FOREACH(client, &(old_container->clients), clients)
client->container = new_container;
struct Stack_Window *stack_win;
SLIST_FOREACH(stack_win, &stack_wins, stack_windows)
if (stack_win == &(old_container->stack_win)) {
xcb_destroy_window(conn, stack_win->window);
SLIST_REMOVE(&stack_wins, stack_win, Stack_Window, stack_windows);
}
if (old_container->mode == MODE_STACK)
leave_stack_mode(conn, old_container);
free(old_container);
@ -148,12 +144,8 @@ static void move_rows_from(xcb_connection_t *conn, Workspace *workspace, int row
CIRCLEQ_FOREACH(client, &(old_container->clients), clients)
client->container = new_container;
struct Stack_Window *stack_win;
SLIST_FOREACH(stack_win, &stack_wins, stack_windows)
if (stack_win == &(old_container->stack_win)) {
xcb_destroy_window(conn, stack_win->window);
SLIST_REMOVE(&stack_wins, stack_win, Stack_Window, stack_windows);
}
if (old_container->mode == MODE_STACK)
leave_stack_mode(conn, old_container);
free(old_container);