diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-19 20:46:22 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-20 20:19:38 +0100 |
commit | ac007218bc69370b069284f586867c6f2afa4954 (patch) | |
tree | 4f847ba1165809120b1020e0781d5a3b17fe522f /Servers/WindowServer | |
parent | ea91f24a498f9cd8fc5d56b08bedd3512ab5fce8 (diff) | |
download | serenity-ac007218bc69370b069284f586867c6f2afa4954.zip |
WindowServer: Starting a drag should forget the active input window
When we're in a drag, we're no longer concerned with streaming mouse
events to the window that initiated the drag, so just clear the active
input window pointer.
This fixes an issue where you'd have to click once after drag and drop
in order to "release" the mouse from the active input window.
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r-- | Servers/WindowServer/WSWindowManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Servers/WindowServer/WSWindowManager.cpp b/Servers/WindowServer/WSWindowManager.cpp index 812207eefd..d4b56e953a 100644 --- a/Servers/WindowServer/WSWindowManager.cpp +++ b/Servers/WindowServer/WSWindowManager.cpp @@ -1199,6 +1199,7 @@ void WSWindowManager::start_dnd_drag(WSClientConnection& client, const String& t m_dnd_data_type = data_type; m_dnd_data = data; WSCompositor::the().invalidate_cursor(); + m_active_input_window = nullptr; } void WSWindowManager::end_dnd_drag() |