1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13: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:
Andreas Kling 2021-05-09 21:35:14 +02:00
parent 5aa9f128fc
commit 5497b7a718

View file

@ -1492,7 +1492,7 @@ Gfx::IntRect WindowManager::maximized_window_rect(const Window& window) const
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_height(rect.height() - tasteful_space_above_maximized_window);