summaryrefslogtreecommitdiff
path: root/Servers
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-25 04:17:21 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-25 04:17:21 +0200
commite478a2fb0ab8b1b392e4dd0bfaa7eafb7d12c6a4 (patch)
tree3fe05c3d5da5c5fdc7c94da04985ba8d7ecad212 /Servers
parent817ac9c22bbcc0813409ce8d3f05fcb8b035b898 (diff)
downloadserenity-e478a2fb0ab8b1b392e4dd0bfaa7eafb7d12c6a4.zip
WindowServer: Don't draw titlebar separator for titlebar-less windows.
Diffstat (limited to 'Servers')
-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 2defdd9035..7a3c3ccee7 100644
--- a/Servers/WindowServer/WSWindowFrame.cpp
+++ b/Servers/WindowServer/WSWindowFrame.cpp
@@ -195,12 +195,13 @@ void WSWindowFrame::paint(Painter& painter)
middle_border_color = Color::MidGray;
}
- painter.draw_line(titlebar_rect.bottom_left().translated(0, 1), titlebar_rect.bottom_right().translated(0, 1), Color::LightGray);
StylePainter::paint_window_frame(painter, outer_rect);
if (!window.show_titlebar())
return;
+ painter.draw_line(titlebar_rect.bottom_left().translated(0, 1), titlebar_rect.bottom_right().translated(0, 1), Color::LightGray);
+
auto leftmost_button_rect = m_buttons.is_empty() ? Rect() : m_buttons.last()->relative_rect();
painter.fill_rect_with_gradient(titlebar_rect, border_color, border_color2);