Bugfix: Also render decorations of nearby cons when getting an ExposeEvent (Thanks fernandotcl)

This commit is contained in:
Michael Stapelberg 2010-11-28 00:52:24 +01:00
parent 0cfebcb5b6
commit 6fe0e58a64
1 changed files with 8 additions and 0 deletions

View File

@ -617,6 +617,14 @@ int handle_expose_event(void *data, xcb_connection_t *conn, xcb_expose_event_t *
if (con->window) if (con->window)
x_draw_decoration(con); x_draw_decoration(con);
} }
/* We also need to render the decorations of other Cons nearby the Con
* itself to not get overlapping decorations */
TAILQ_FOREACH(con, &(parent->parent->nodes_head), nodes) {
LOG("expose for con %p / %s\n", con, con->name);
if (con->window)
x_draw_decoration(con);
}
xcb_flush(conn); xcb_flush(conn);
return 1; return 1;