Skip to content

Commit

Permalink
fix(komorebi): close the corner gap around rounded corners
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
raggi authored and LGUG2Z committed Feb 26, 2024
1 parent 0c2e37e commit 9b9777f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion komorebi/src/windows_callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9b9777f

Please sign in to comment.