mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
WindowServer: Adjust MenuApplet position on resize
Applet rects are now recalculated when changed.
This commit is contained in:
parent
f6db97b8a9
commit
030f4150b8
Notes:
sideshowbarker
2024-07-19 04:37:28 +09:00
Author: https://github.com/thankyouverycool
Commit: 030f4150b8
Pull-request: https://github.com/SerenityOS/serenity/pull/2875
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/benit8
1 changed files with 6 additions and 3 deletions
|
@ -379,6 +379,9 @@ void WindowManager::notify_rect_changed(Window& window, const Gfx::IntRect& old_
|
|||
|
||||
tell_wm_listeners_window_rect_changed(window);
|
||||
|
||||
if (window.type() == WindowType::MenuApplet)
|
||||
AppletManager::the().calculate_applet_rects(MenuManager::the().window());
|
||||
|
||||
MenuManager::the().refresh();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue