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:
Andreas Kling 2021-11-13 12:45:43 +01:00
commit a8fed919e7
Notes: sideshowbarker 2024-07-18 01:12:32 +09:00

View file

@ -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)