From 464d45daa229f16934399ceb16e94783ed2c241c Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 10 Aug 2026 18:04:50 +0300 Subject: [PATCH] Stop squaring windowed fullscreen corners with clip-to-geometry --- src/layout/mod.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 5fa5f87d..5df3959a 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -310,10 +310,17 @@ pub trait LayoutElement { /// are handled externally by the Tile, so the corner radius changes for those modes is also /// handled externally. fn geometry_corner_radius(&self) -> CornerRadius { - if self.is_windowed_fullscreen() { + let rules = self.rules(); + + // When windows think they're fullscreen, they square their corners. + // + // However, if the user is clipping the window to geometry, they are likely going for + // consistent corner radius, and want this radius to remain in windowed fullscreen. + if self.is_windowed_fullscreen() && rules.clip_to_geometry != Some(true) { return CornerRadius::default(); } - self.rules().geometry_corner_radius.unwrap_or_default() + + rules.geometry_corner_radius.unwrap_or_default() } fn is_child_of(&self, parent: &Self) -> bool;