diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-13 12:45:43 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-13 12:48:43 +0100 |
commit | a8fed919e7873dd56c96d1e78bd18e9e2482bb13 (patch) | |
tree | a01fec7ed7a76bff9f5b0941a12922bcc1eca377 | |
parent | 68dc2e62fb61f25113b3ab005df3faba9b4477b8 (diff) | |
download | serenity-a8fed919e7873dd56c96d1e78bd18e9e2482bb13.zip |
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.
-rw-r--r-- | Userland/Services/WindowServer/WindowManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index f882545d59..e4638d230f 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -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) |