]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Also render decorations of nearby cons when getting an ExposeEvent (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Nov 2010 23:52:24 +0000 (00:52 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Nov 2010 23:52:24 +0000 (00:52 +0100)
src/handlers.c

index 36b2a2fd2262563c4d72184aaa3e842499318b47..03fd802c5046f072263989f825686175afc6b0c4 100644 (file)
@@ -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;