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:
parent
ea91f24a49
commit
ac007218bc
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue