1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +00:00

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
parent ea91f24a49
commit ac007218bc

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