]> Git Repo - qemu.git/commit
gtk: Implement grab-on-click behavior in relative mode
authorTakashi Iwai <[email protected]>
Tue, 8 Apr 2014 09:26:45 +0000 (11:26 +0200)
committerGerd Hoffmann <[email protected]>
Tue, 8 Apr 2014 11:57:34 +0000 (13:57 +0200)
commit800b0e814bef7cd14ae2bce149c09d70676e93fb
tree93d18f4d59e86d40239ed3259da217c13e94f0c5
parent55519a4b244e4822774b593e36647ecf7598286b
gtk: Implement grab-on-click behavior in relative mode

This patch changes the behavior in the relative mode to be compatible
with other UIs, namely, grabbing the input at the first left click.
It improves the usability a lot; otherwise you have to press ctl-alt-G
or select from menu at each time you want to move the pointer.  Also,
the input grab is cleared when the current mode is switched to the
absolute mode.

The automatic reset of the implicit grabbing is needed since the
switching to the absolute mode happens always after the click even on
Gtk.  That is, we cannot check whether the absolute mode is already
available at the first click time even though it should have been
switched in X11 input driver side.

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
ui/gtk.c
This page took 0.02526 seconds and 4 git commands to generate.