summaryrefslogtreecommitdiff
path: root/Services/WindowServer/WindowFrame.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-23 13:17:34 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-23 13:17:34 +0200
commit85e818206cdf268b55be05492a57ceff4c9ccd98 (patch)
tree8da88311a2c2965e3f84aa32d880b2b18a98c9ab /Services/WindowServer/WindowFrame.cpp
parent0944f56181e0487c3a45185aa9730b0fde0a49a7 (diff)
downloadserenity-85e818206cdf268b55be05492a57ceff4c9ccd98.zip
LibGfx+WindowServer: Simplify notification window frame theming
Don't require theme clients to provide the frame rect, the theme can compute that internally based on the window rect.
Diffstat (limited to 'Services/WindowServer/WindowFrame.cpp')
-rw-r--r--Services/WindowServer/WindowFrame.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Services/WindowServer/WindowFrame.cpp b/Services/WindowServer/WindowFrame.cpp
index 26a0bbf675..b12e0e8b63 100644
--- a/Services/WindowServer/WindowFrame.cpp
+++ b/Services/WindowServer/WindowFrame.cpp
@@ -172,8 +172,7 @@ Gfx::WindowTheme::WindowState WindowFrame::window_state_for_theme() const
void WindowFrame::paint_notification_frame(Gfx::Painter& painter)
{
auto palette = WindowManager::the().palette();
- Gfx::IntRect outer_rect = { {}, rect().size() };
- Gfx::WindowTheme::current().paint_notification_frame(painter, outer_rect, m_window.rect(), palette, m_buttons.last().relative_rect());
+ Gfx::WindowTheme::current().paint_notification_frame(painter, m_window.rect(), palette, m_buttons.last().relative_rect());
}
void WindowFrame::paint_normal_frame(Gfx::Painter& painter)