]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t lose focus when putting windows into floating
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Jun 2009 02:34:36 +0000 (04:34 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Jun 2009 02:34:36 +0000 (04:34 +0200)
src/commands.c

index 509e3e26bb526a9f9c0a79c4cb327e5bbdd10e60..275f8f96bb08c931d09842656a91b6e46f848dbe 100644 (file)
@@ -975,7 +975,11 @@ void parse_command(xcb_connection_t *conn, const char *command) {
                 fix_colrowspan(conn, last_focused->workspace);
 
                 render_workspace(conn, last_focused->workspace->screen, last_focused->workspace);
-                xcb_flush(conn);
+
+                /* Re-focus the client because cleanup_table sets the focus to the last
+                 * focused client inside a container only. */
+                set_focus(conn, last_focused, true);
+
                 return;
         }