]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Put floating clients into the focus stack (Thanks Mirko)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 13 Jun 2009 10:20:39 +0000 (12:20 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 13 Jun 2009 10:20:39 +0000 (12:20 +0200)
src/manage.c

index 84e0e15f0e08b7568dfc6f72522e891ff2b673b1..e7b7c5f6920ac04e06b26da3f4e6b39061d16a59 100644 (file)
@@ -369,6 +369,8 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
         }
 
         if (new->floating >= FLOATING_AUTO_ON) {
+                SLIST_INSERT_HEAD(&(new->workspace->focus_stack), new, focus_clients);
+
                 new->floating_rect.x = new->rect.x;
                 new->floating_rect.y = new->rect.y;
                 LOG("copying size from tiling (%d, %d) size (%d, %d)\n",