Bugfix: Cleanup the table after putting clients into floating mode

This commit is contained in:
Michael Stapelberg 2009-05-26 17:16:51 +02:00
parent 94cead993c
commit 9c3b37f2d1

View File

@ -262,7 +262,8 @@ static void move_current_window(xcb_connection_t *conn, direction_t direction) {
/* Fix colspan/rowspan if itd 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 itd overlap */
fix_colrowspan(conn, last_focused->workspace);
render_workspace(conn, last_focused->workspace->screen, last_focused->workspace);
xcb_flush(conn);
return;
}