From 9b9777feafb397578c5c575c11e98eb5520dce64 Mon Sep 17 00:00:00 2001 From: James Tucker Date: Sun, 25 Feb 2024 14:50:03 -0800 Subject: [PATCH] fix(komorebi): close the corner gap around rounded corners The default window corner rounding is still slightly visible at offset -1 until this corner radius that completely closes up the transparent region, without needing to invasively draw over the target window. --- komorebi/src/windows_callbacks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi/src/windows_callbacks.rs b/komorebi/src/windows_callbacks.rs index 242632f7..0c95ed4d 100644 --- a/komorebi/src/windows_callbacks.rs +++ b/komorebi/src/windows_callbacks.rs @@ -229,7 +229,7 @@ pub extern "system" fn border_window( // wrong size. In the future we should read the DWM properties // of windows and attempt to match appropriately. if *WINDOWS_11 { - RoundRect(hdc, 0, 0, border_rect.right, border_rect.bottom, 14, 14); + RoundRect(hdc, 0, 0, border_rect.right, border_rect.bottom, 20, 20); } else { Rectangle(hdc, 0, 0, border_rect.right, border_rect.bottom); }