mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:17:35 +00:00
WindowServer: Tweak spacing above maximized windows
Nudge maximized windows 1px upwards. This prevents the outer window border from showing up above the title bar.
This commit is contained in:
parent
5aa9f128fc
commit
5497b7a718
1 changed files with 1 additions and 1 deletions
|
@ -1492,7 +1492,7 @@ Gfx::IntRect WindowManager::maximized_window_rect(const Window& window) const
|
||||||
return IterationDecision::Break;
|
return IterationDecision::Break;
|
||||||
});
|
});
|
||||||
|
|
||||||
constexpr int tasteful_space_above_maximized_window = 2;
|
constexpr int tasteful_space_above_maximized_window = 1;
|
||||||
rect.set_y(rect.y() + tasteful_space_above_maximized_window);
|
rect.set_y(rect.y() + tasteful_space_above_maximized_window);
|
||||||
rect.set_height(rect.height() - tasteful_space_above_maximized_window);
|
rect.set_height(rect.height() - tasteful_space_above_maximized_window);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue