mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
WindowServer: Redraw window menubars when moving with arrow keys
Also, make sure we don't draw a menu in hovered state while another menu is open. Fixes #5949.
This commit is contained in:
parent
6ae174f80a
commit
dfb81242f3
2 changed files with 7 additions and 2 deletions
|
@ -159,6 +159,7 @@ void MenuManager::event(Core::Event& event)
|
|||
if (target_menu) {
|
||||
target_menu->ensure_menu_window().move_to(target_menu->rect_in_window_menubar().bottom_left().translated(wm.window_with_active_menu()->frame().rect().location()).translated(wm.window_with_active_menu()->frame().menubar_rect().location()));
|
||||
open_menu(*target_menu);
|
||||
wm.window_with_active_menu()->invalidate_menubar();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -175,6 +176,7 @@ void MenuManager::event(Core::Event& event)
|
|||
if (target_menu) {
|
||||
target_menu->ensure_menu_window().move_to(target_menu->rect_in_window_menubar().bottom_left().translated(wm.window_with_active_menu()->frame().rect().location()).translated(wm.window_with_active_menu()->frame().menubar_rect().location()));
|
||||
open_menu(*target_menu);
|
||||
wm.window_with_active_menu()->invalidate_menubar();
|
||||
close_everyone_not_in_lineage(*target_menu);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue