]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Also invalidate caches of the following cons in a split con on cache miss...
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Mar 2011 17:17:18 +0000 (18:17 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Mar 2011 17:17:18 +0000 (18:17 +0100)
src/x.c

diff --git a/src/x.c b/src/x.c
index 681ff37084ef698347c0612c4aec64c93668d5b8..c21ff739f7a0ff36c51f7a2ba47d6f89c7ede4a9 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -283,6 +283,12 @@ void x_draw_decoration(Con *con) {
     }
 
     DLOG("CACHE MISS\n");
+    Con *next = con;
+    while ((next = TAILQ_NEXT(next, nodes))) {
+        DLOG("Also invalidating cache of %p\n", next);
+        FREE(next->deco_render_params);
+    }
+
     FREE(con->deco_render_params);
     con->deco_render_params = p;