From 8ca66f8a005e7d98545c22c2889c38926d218c8e Mon Sep 17 00:00:00 2001 From: Maxim Solovyov Date: Mon, 29 Jan 2024 23:16:51 +0300 Subject: [PATCH] win: allow corner-radius-rules without corner-radius check if there is an override in corner-radius-rules even when corner-radius is 0. --- src/win.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/win.c b/src/win.c index b8bfe76..37f198a 100644 --- a/src/win.c +++ b/src/win.c @@ -1139,16 +1139,16 @@ static void win_determine_blur_background(session_t *ps, struct managed_win *w) * Determine if a window should have rounded corners. */ static void win_determine_rounded_corners(session_t *ps, struct managed_win *w) { - if (ps->o.corner_radius == 0) { - w->corner_radius = 0; - return; - } - void *radius_override = NULL; if (c2_match(ps, w, ps->o.corner_radius_rules, &radius_override)) { log_debug("Matched corner rule! %d", w->corner_radius); } + if (ps->o.corner_radius == 0 && !radius_override) { + w->corner_radius = 0; + return; + } + // Don't round full screen windows & excluded windows, // unless we find a corner override in corner_radius_rules if (!radius_override && ((w && win_is_fullscreen(ps, w)) ||