1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:47:45 +00:00

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
parent 2a74c59dec
commit 597b0c9efd

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()