aboutsummaryrefslogtreecommitdiff
path: root/src/win.c
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-10-13 17:01:49 +1100
committerallusive-dev <[email protected]>2023-10-13 17:01:49 +1100
commita7fc0f0580a6ae12347fc761e80bdb8caf343905 (patch)
tree30e615175993c915cbaed8daafa7b8e218d39b2e /src/win.c
parenttesting corner-rules again (diff)
downloadcompfy-a7fc0f0580a6ae12347fc761e80bdb8caf343905.tar.xz
compfy-a7fc0f0580a6ae12347fc761e80bdb8caf343905.zip
testing corner-rules 3rd time0.3.2
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c3
1 files changed, 2 insertions, 1 deletions
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;