]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: correctly re-assign dock clients when output goes inactive
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 20 Mar 2010 01:52:06 +0000 (02:52 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 20 Mar 2010 01:52:06 +0000 (02:52 +0100)
src/randr.c

index 3be654a76c21d80838010ed603f577041aca3eb7..ab79ea5bdb10e992a7ec8490284a74f150f5a7df 100644 (file)
@@ -447,8 +447,8 @@ void randr_query_outputs(xcb_connection_t *conn) {
                         Client *dock;
                         while (!SLIST_EMPTY(&(output->dock_clients))) {
                                 dock = SLIST_FIRST(&(output->dock_clients));
-                                SLIST_INSERT_HEAD(&(first->dock_clients), dock, dock_clients);
                                 SLIST_REMOVE_HEAD(&(output->dock_clients), dock_clients);
+                                SLIST_INSERT_HEAD(&(first->dock_clients), dock, dock_clients);
                         }
                         output->current_workspace = NULL;
                         output->to_be_disabled = false;