mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:08:10 +00:00
WindowServer: Clear active input tracking window on menu popup
This fixes an issue with menus not being immediately "usable" with the the right mouse button after opening a context menu. The bug was that we were clearing a local pointer to the active input tracking window instead of the pointer in WindowStack.
This commit is contained in:
parent
68dc2e62fb
commit
a8fed919e7
1 changed files with 1 additions and 1 deletions
|
@ -1960,7 +1960,7 @@ void WindowManager::did_popup_a_menu(Badge<Menu>)
|
|||
if (!active_input_tracking_window)
|
||||
return;
|
||||
active_input_tracking_window->set_automatic_cursor_tracking_enabled(false);
|
||||
active_input_tracking_window = nullptr;
|
||||
current_window_stack().set_active_input_tracking_window(nullptr);
|
||||
}
|
||||
|
||||
void WindowManager::minimize_windows(Window& window, bool minimized)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue