From: Michael Stapelberg Date: Sat, 27 Nov 2010 23:52:24 +0000 (+0100) Subject: Bugfix: Also render decorations of nearby cons when getting an ExposeEvent (Thanks... X-Git-Tag: tree-pr1~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fe0e58a6421bfcdea797fc3aed208cb4f0bc9da;p=i3%2Fi3 Bugfix: Also render decorations of nearby cons when getting an ExposeEvent (Thanks fernandotcl) --- diff --git a/src/handlers.c b/src/handlers.c index 36b2a2fd..03fd802c 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -617,6 +617,14 @@ int handle_expose_event(void *data, xcb_connection_t *conn, xcb_expose_event_t * if (con->window) 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); return 1;