From 85e818206cdf268b55be05492a57ceff4c9ccd98 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 23 Aug 2020 13:17:34 +0200 Subject: 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. --- Services/WindowServer/WindowFrame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Services/WindowServer/WindowFrame.cpp') 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) -- cgit v1.2.3