summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSWindowFrame.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-11 02:59:40 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-11 02:59:40 +0200
commitaf070324db996f661be80c7bf1f5263991121ee0 (patch)
tree82112db49eddd856e6a35ff8c1b59825d6a5f1c6 /Servers/WindowServer/WSWindowFrame.cpp
parentead6524c0afa342ac5e47420a86047e2c003eba9 (diff)
downloadserenity-af070324db996f661be80c7bf1f5263991121ee0.zip
WindowServer: Tweak window title positioning.
Diffstat (limited to 'Servers/WindowServer/WSWindowFrame.cpp')
-rw-r--r--Servers/WindowServer/WSWindowFrame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Servers/WindowServer/WSWindowFrame.cpp b/Servers/WindowServer/WSWindowFrame.cpp
index b782082937..bdaf9996d4 100644
--- a/Servers/WindowServer/WSWindowFrame.cpp
+++ b/Servers/WindowServer/WSWindowFrame.cpp
@@ -178,7 +178,8 @@ void WSWindowFrame::paint(Painter& painter)
painter.draw_rect(outer_rect, border_color);
painter.draw_rect(inner_border_rect, border_color);
- painter.draw_text(titlebar_title_rect, window.title(), wm.window_title_font(), TextAlignment::CenterLeft, title_color);
+ // FIXME: The translated(0, 1) wouldn't be necessary if we could center text based on its baseline.
+ painter.draw_text(titlebar_title_rect.translated(0, 1), window.title(), wm.window_title_font(), TextAlignment::CenterLeft, title_color);
painter.blit(titlebar_icon_rect.location(), window.icon(), window.icon().rect());