Don’t assign ->container for dock-windows

This commit is contained in:
Michael Stapelberg
2009-02-23 03:44:10 +01:00
parent 8b0bc8c3ff
commit 07b92c2792
5 changed files with 33 additions and 16 deletions

View File

@ -89,6 +89,8 @@ static void focus_window(xcb_connection_t *connection, direction_t direction) {
*/
static bool move_current_window_in_container(xcb_connection_t *connection, Client *client,
direction_t direction) {
assert(client->container != NULL);
Client *other = (direction == D_UP ? CIRCLEQ_PREV(client, clients) :
CIRCLEQ_NEXT(client, clients));