]> git.sur5r.net Git - i3/i3/commitdiff
Merge pull request #3188 from orestisf1993/free_ran_assignments
authorIngo Bürk <admin@airblader.de>
Mon, 19 Mar 2018 06:04:45 +0000 (07:04 +0100)
committerGitHub <noreply@github.com>
Mon, 19 Mar 2018 06:04:45 +0000 (07:04 +0100)
Free ran_assignments

src/config.c

index 2d5d78afa5805a10085a6ec3bb24e9422671825f..fd379fdea475d234a47932b5f234b9116d144c9a 100644 (file)
@@ -162,10 +162,16 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
             FREE(barconfig);
         }
 
-        /* Invalidate pixmap caches in case font or colors changed */
         Con *con;
-        TAILQ_FOREACH(con, &all_cons, all_cons)
-        FREE(con->deco_render_params);
+        TAILQ_FOREACH(con, &all_cons, all_cons) {
+            /* Assignments changed, previously ran assignments are invalid. */
+            if (con->window) {
+                con->window->nr_assignments = 0;
+                FREE(con->window->ran_assignments);
+            }
+            /* Invalidate pixmap caches in case font or colors changed. */
+            FREE(con->deco_render_params);
+        }
 
         /* Get rid of the current font */
         free_font();