From: Michael Stapelberg Date: Tue, 26 May 2009 15:16:51 +0000 (+0200) Subject: Bugfix: Cleanup the table after putting clients into floating mode X-Git-Tag: 3.b~97 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9c3b37f2d11d10d1fa61487cf3f77098e4bfe455;p=i3%2Fi3 Bugfix: Cleanup the table after putting clients into floating mode --- 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; }