mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 19:25:07 +00:00
WindowServer: Cancel any ongoing input tracking when a menu pops up
When the user opens a context menu by right-clicking on something, we now immediately stop sending mouse events to whoever was doing active input window tracking before. There are probably more situations where we should do this, and maybe there's also a more generic way to express it, but this works for now.
This commit is contained in:
parent
4330046aff
commit
7aa2acefd0
3 changed files with 13 additions and 0 deletions
|
@ -551,6 +551,8 @@ void Menu::popup(const Gfx::Point& position, bool is_submenu)
|
|||
window.move_to(adjusted_pos);
|
||||
window.set_visible(true);
|
||||
MenuManager::the().set_current_menu(this, is_submenu);
|
||||
|
||||
WindowManager::the().did_popup_a_menu({});
|
||||
}
|
||||
|
||||
bool Menu::is_menu_ancestor_of(const Menu& other) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue