Bugfix: Also invalidate caches of the following cons in a split con on cache miss (Thanks fernandotcl)
This commit is contained in:
parent
b3ee50b184
commit
38173749f8
6
src/x.c
6
src/x.c
@ -283,6 +283,12 @@ void x_draw_decoration(Con *con) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DLOG("CACHE MISS\n");
|
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);
|
FREE(con->deco_render_params);
|
||||||
con->deco_render_params = p;
|
con->deco_render_params = p;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user