From b85a57ead7871fd047bdf7205d0cc856569f1f5b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 4 Jul 2020 19:21:57 +0200 Subject: [PATCH] WindowServer: Move window titles 1px to the right This makes it look nicer with wide window icons. --- Services/WindowServer/WindowFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/WindowServer/WindowFrame.cpp b/Services/WindowServer/WindowFrame.cpp index 0c815ac781..3a69f78e73 100644 --- a/Services/WindowServer/WindowFrame.cpp +++ b/Services/WindowServer/WindowFrame.cpp @@ -174,9 +174,9 @@ Gfx::IntRect WindowFrame::title_bar_text_rect() const auto titlebar_rect = title_bar_rect(); auto titlebar_icon_rect = title_bar_icon_rect(); return { - titlebar_rect.x() + 2 + titlebar_icon_rect.width() + 2, + titlebar_rect.x() + 3 + titlebar_icon_rect.width() + 2, titlebar_rect.y(), - titlebar_rect.width() - 4 - titlebar_icon_rect.width() - 2, + titlebar_rect.width() - 5 - titlebar_icon_rect.width() - 2, titlebar_rect.height() }; }