]> git.sur5r.net Git - i3/i3/blobdiff - src/x.c
Introduce a cached boolean for changes to the mark of a window.
[i3/i3] / src / x.c
diff --git a/src/x.c b/src/x.c
index a3810942d27d7884c06fd1f6204a597e6ba48d16..1d4bfdf11fd6aa2775ffa388af9d71038ee41b7a 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -363,6 +363,7 @@ void x_draw_decoration(Con *con) {
         (con->window == NULL || !con->window->name_x_changed) &&
         !parent->pixmap_recreated &&
         !con->pixmap_recreated &&
+        !con->mark_changed &&
         memcmp(p, con->deco_render_params, sizeof(struct deco_render_params)) == 0) {
         free(p);
         goto copy_pixmaps;
@@ -381,6 +382,7 @@ void x_draw_decoration(Con *con) {
 
     parent->pixmap_recreated = false;
     con->pixmap_recreated = false;
+    con->mark_changed = false;
 
     /* 2: draw the client.background, but only for the parts around the client_rect */
     if (con->window != NULL) {