1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 22:15:08 +00:00

WindowServer: Adjust MenuApplet position on resize

Applet rects are now recalculated when changed.
This commit is contained in:
thankyouverycool 2020-07-24 16:05:05 -04:00 committed by Andreas Kling
parent f6db97b8a9
commit 030f4150b8

View file

@ -379,6 +379,9 @@ void WindowManager::notify_rect_changed(Window& window, const Gfx::IntRect& old_
tell_wm_listeners_window_rect_changed(window); tell_wm_listeners_window_rect_changed(window);
if (window.type() == WindowType::MenuApplet)
AppletManager::the().calculate_applet_rects(MenuManager::the().window());
MenuManager::the().refresh(); MenuManager::the().refresh();
} }