1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

WSWindowManager: Ensure that we pick a single window to deliver a full stream of events to

This is effectively a mouse grab except that we don't require any client
coordination to request it (which is probably OK, and certainly a lot
simpler to implement).

This prevents e.g. dragging the mouse cursor out of paint and over the
terminal from selecting text unexpectedly.
This commit is contained in:
Robin Burchell 2019-06-28 15:11:08 +02:00 committed by Andreas Kling
parent d0a2668833
commit 8a1a9e78d7
2 changed files with 54 additions and 34 deletions

View file

@ -220,6 +220,7 @@ private:
WeakPtr<WSWindow> m_active_window;
WeakPtr<WSWindow> m_hovered_window;
WeakPtr<WSWindow> m_highlight_window;
WeakPtr<WSWindow> m_active_input_window;
WeakPtr<WSWindow> m_drag_window;
Point m_drag_origin;