diff options
author | Akihiko Odaki | 2021-02-22 16:07:14 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2021-03-11 13:33:20 +0100 |
commit | d1929069e355afb809a50a7f6b6affdea399cc8c (patch) | |
tree | 25ad7521bc1b94abe619e26d44474b48cec681a2 /docs/system | |
parent | ui/cocoa: Mark variables static (diff) | |
download | qemu-d1929069e355afb809a50a7f6b6affdea399cc8c.tar.gz qemu-d1929069e355afb809a50a7f6b6affdea399cc8c.tar.xz qemu-d1929069e355afb809a50a7f6b6affdea399cc8c.zip |
ui/cocoa: Fix mouse association state
ui/cocoa deassociates the mouse input and the mouse cursor
position only when relative movement inputs are expected. Such
inputs may let the mouse cursor leave the view and cause undesired
side effects if they are associated. On the other hand, the
problem does not occur when inputting absolute points, and the
association allows seamless cursor movement across views.
However, the synchronization of the association and the expected
input type was only done when grabbing the mouse. In reality, the
state whether the emulated input device expects absolute pointing
inputs or relative movement inputs can vary dynamically due to
USB device hot-plugging, for example.
This change adds association state updates according to input type
expectation changes. It also removes an internal flag representing
the association state because the state can now be determined with
the current input type expectation and it only adds the
complexity of the state tracking.
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210222150714.21766-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'docs/system')
0 files changed, 0 insertions, 0 deletions