From ac007218bc69370b069284f586867c6f2afa4954 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 19 Dec 2019 20:46:22 +0100 Subject: [PATCH] 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. --- Servers/WindowServer/WSWindowManager.cpp | 1 + 1 file changed, 1 insertion(+) 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()