diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-09 21:35:14 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-09 21:48:38 +0200 |
commit | 5497b7a7183734a75eb332369b81beb8fe2eee27 (patch) | |
tree | 634ddcdeacf46972d776423714eadc95198e3dcc | |
parent | 5aa9f128fca5a377d88323e7e4a5dc57efdae547 (diff) | |
download | serenity-5497b7a7183734a75eb332369b81beb8fe2eee27.zip |
WindowServer: Tweak spacing above maximized windows
Nudge maximized windows 1px upwards. This prevents the outer window
border from showing up above the title bar.
-rw-r--r-- | Userland/Services/WindowServer/WindowManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index c73c82eeb1..668ebc5675 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -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); |