From ab48d714cf013f92c2cbac7a89d0c061f00cc86e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 26 Jun 2009 04:34:36 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix:=20Don=E2=80=99t=20lose=20focus=20when?= =?UTF-8?q?=20putting=20windows=20into=20floating?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index 509e3e26..275f8f96 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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; }