Bugfix: Fix rendering (needed a flush)

This commit is contained in:
Michael Stapelberg
2009-03-05 20:07:57 +01:00
parent d2d6c0de12
commit 3684abec1a
2 changed files with 5 additions and 4 deletions

View File

@ -89,10 +89,10 @@ int get_unoccupied_y(Workspace *workspace, int col) {
*
*/
void redecorate_window(xcb_connection_t *conn, Client *client) {
if (client->container->mode == MODE_STACK) {
if (client->container->mode == MODE_STACK)
render_container(conn, client->container);
xcb_flush(conn);
} else decorate_window(conn, client, client->frame, client->titlegc, 0);
else decorate_window(conn, client, client->frame, client->titlegc, 0);
xcb_flush(conn);
}
/*
@ -431,6 +431,7 @@ void render_layout(xcb_connection_t *conn) {
for (int rows = 0; rows < r_ws->rows; rows++)
xoffset[rows] = r_ws->rect.x;
dump_table(conn, r_ws);
/* Go through the whole table and render whats necessary */
for (int cols = 0; cols < r_ws->cols; cols++)
for (int rows = 0; rows < r_ws->rows; rows++) {