From 597b0c9efd6c811706811bc03c9239481f7be3f9 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sun, 2 Aug 2020 01:03:13 +0200 Subject: [PATCH] WindowServer: Redraw MenuApplets on add/delete --- Services/WindowServer/AppletManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Services/WindowServer/AppletManager.cpp b/Services/WindowServer/AppletManager.cpp index 260d83a7e0..6da3a3716a 100644 --- a/Services/WindowServer/AppletManager.cpp +++ b/Services/WindowServer/AppletManager.cpp @@ -83,6 +83,8 @@ void AppletManager::add_applet(Window& applet) }); calculate_applet_rects(MenuManager::the().window()); + + MenuManager::the().refresh(); } void AppletManager::calculate_applet_rects(Window& window) @@ -105,6 +107,8 @@ void AppletManager::remove_applet(Window& applet) m_applets.remove_first_matching([&](auto& entry) { return &applet == entry.ptr(); }); + + MenuManager::the().refresh(); } void AppletManager::draw()