Bugfix: Correctly check for empty containers and unmap the stack_win

This commit is contained in:
Michael Stapelberg
2009-03-06 19:08:59 +01:00
parent 017a0c0d08
commit a411ed24cb
4 changed files with 20 additions and 10 deletions

View File

@ -217,7 +217,7 @@ static void move_current_window(xcb_connection_t *conn, direction_t direction) {
}
/* Remove it from the old container and put it into the new one */
CIRCLEQ_REMOVE(&(container->clients), current_client, clients);
remove_client_from_container(conn, current_client, container);
CIRCLEQ_INSERT_TAIL(&(new->clients), current_client, clients);
/* Update data structures */