From 0ed8d0cadfb6fc60ee77cd2c2e24e153175e5547 Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Fri, 2 Feb 2024 17:06:18 +0300 Subject: [PATCH] picom: post-process and free the corner radius rules list to make conditions based on non-standard atoms in this list work. --- src/picom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/picom.c b/src/picom.c index 4e7a1b9a..13dd0a18 100644 --- a/src/picom.c +++ b/src/picom.c @@ -2249,6 +2249,7 @@ static session_t *session_init(int argc, char **argv, Display *dpy, c2_list_postprocess(ps, ps->o.window_shader_fg_rules) && c2_list_postprocess(ps, ps->o.opacity_rules) && c2_list_postprocess(ps, ps->o.rounded_corners_blacklist) && + c2_list_postprocess(ps, ps->o.corner_radius_rules) && c2_list_postprocess(ps, ps->o.focus_blacklist))) { log_error("Post-processing of conditionals failed, some of your rules " "might not work"); @@ -2664,6 +2665,7 @@ static void session_destroy(session_t *ps) { c2_list_free(&ps->o.paint_blacklist, NULL); c2_list_free(&ps->o.unredir_if_possible_blacklist, NULL); c2_list_free(&ps->o.rounded_corners_blacklist, NULL); + c2_list_free(&ps->o.corner_radius_rules, NULL); c2_list_free(&ps->o.window_shader_fg_rules, free); // Free tracked atom list