From a7fc0f0580a6ae12347fc761e80bdb8caf343905 Mon Sep 17 00:00:00 2001 From: allusive-dev Date: Fri, 13 Oct 2023 17:01:49 +1100 Subject: testing corner-rules 3rd time --- src/win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/win.c') diff --git a/src/win.c b/src/win.c index d01d2e9..767efc1 100644 --- a/src/win.c +++ b/src/win.c @@ -1393,6 +1393,8 @@ static void win_determine_rounded_corners(session_t *ps, struct managed_win *w) w->corner_radius = 0; return; } + + void *val = NULL; // Don't round full screen windows & excluded windows if ((w && win_is_fullscreen(ps, w)) || @@ -1400,7 +1402,6 @@ static void win_determine_rounded_corners(session_t *ps, struct managed_win *w) w->corner_radius = 0; log_debug("Not rounding corners for window %#010x", w->base.id); } else if (c2_match(ps, w, ps->o.corner_rules, &val)) { - void *val = NULL; w->corner_radius = val; } else { w->corner_radius = ps->o.corner_radius; -- cgit v1.2.3