From 9c3b37f2d11d10d1fa61487cf3f77098e4bfe455 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 26 May 2009 17:16:51 +0200 Subject: [PATCH] Bugfix: Cleanup the table after putting clients into floating mode --- src/commands.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index 20a8bd05..ee2f6e61 100644 --- a/src/commands.c +++ b/src/commands.c @@ -262,7 +262,8 @@ static void move_current_window(xcb_connection_t *conn, direction_t direction) { /* Fix colspan/rowspan if it’d overlap */ fix_colrowspan(conn, workspace); - render_layout(conn); + render_workspace(conn, workspace->screen, workspace); + xcb_flush(conn); set_focus(conn, current_client, true); } @@ -847,6 +848,14 @@ void parse_command(xcb_connection_t *conn, const char *command) { } toggle_floating_mode(conn, last_focused); + /* delete all empty columns/rows */ + cleanup_table(conn, last_focused->workspace); + + /* Fix colspan/rowspan if it’d overlap */ + fix_colrowspan(conn, last_focused->workspace); + + render_workspace(conn, last_focused->workspace->screen, last_focused->workspace); + xcb_flush(conn); return; } -- 2.39.5