WindowServer: Redraw MenuApplets on add/delete

This commit is contained in:
Ben Wiederhake 2020-08-02 01:03:13 +02:00 committed by Andreas Kling
commit 597b0c9efd
Notes: sideshowbarker 2024-07-19 04:23:54 +09:00

View file

@ -83,6 +83,8 @@ void AppletManager::add_applet(Window& applet)
}); });
calculate_applet_rects(MenuManager::the().window()); calculate_applet_rects(MenuManager::the().window());
MenuManager::the().refresh();
} }
void AppletManager::calculate_applet_rects(Window& window) void AppletManager::calculate_applet_rects(Window& window)
@ -105,6 +107,8 @@ void AppletManager::remove_applet(Window& applet)
m_applets.remove_first_matching([&](auto& entry) { m_applets.remove_first_matching([&](auto& entry) {
return &applet == entry.ptr(); return &applet == entry.ptr();
}); });
MenuManager::the().refresh();
} }
void AppletManager::draw() void AppletManager::draw()