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
commit 5497b7a718
Notes: sideshowbarker 2024-07-18 18:24:31 +09:00

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