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.
This commit is contained in:
Andreas Kling 2019-12-19 20:46:22 +01:00
commit ac007218bc
Notes: sideshowbarker 2024-07-19 10:48:08 +09:00

View file

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