mirror of https://github.com/yshui/picom.git
picom: post-process and free the corner radius rules list
to make conditions based on non-standard atoms in this list work.
This commit is contained in:
parent
bbc657e4bc
commit
0ed8d0cadf
|
@ -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.window_shader_fg_rules) &&
|
||||||
c2_list_postprocess(ps, ps->o.opacity_rules) &&
|
c2_list_postprocess(ps, ps->o.opacity_rules) &&
|
||||||
c2_list_postprocess(ps, ps->o.rounded_corners_blacklist) &&
|
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))) {
|
c2_list_postprocess(ps, ps->o.focus_blacklist))) {
|
||||||
log_error("Post-processing of conditionals failed, some of your rules "
|
log_error("Post-processing of conditionals failed, some of your rules "
|
||||||
"might not work");
|
"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.paint_blacklist, NULL);
|
||||||
c2_list_free(&ps->o.unredir_if_possible_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.rounded_corners_blacklist, NULL);
|
||||||
|
c2_list_free(&ps->o.corner_radius_rules, NULL);
|
||||||
c2_list_free(&ps->o.window_shader_fg_rules, free);
|
c2_list_free(&ps->o.window_shader_fg_rules, free);
|
||||||
|
|
||||||
// Free tracked atom list
|
// Free tracked atom list
|
||||||
|
|
Loading…
Reference in New Issue