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.
This commit is contained in:
James Tucker
2024-02-25 14:50:03 -08:00
committed by جاد
parent 0c2e37e127
commit 9b9777feaf

View File

@@ -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);
}