]> git.proxmox.com Git - mirror_qemu.git/commit - ui/gtk.c
gtk: add support for input grabbing (v2)
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 Feb 2013 13:43:22 +0000 (07:43 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 21 Feb 2013 22:34:48 +0000 (16:34 -0600)
commit5104a1f65088285ddf870aa641b9061064e8757d
tree87c06e96401c55e7495cb37c937f76937a7fd415
parentd861def367b516055dc4c46dc1305143ee653c84
gtk: add support for input grabbing (v2)

There is a small deviation from SDL's behavior here.  Instead of Ctrl+Alt
triggering grab, we now use Ctrl-Alt-g to trigger grab.

GTK will not accept Ctrl+Alt as an accelerator since it just consists of
modifiers.  Having grab as a proper accelerator is important as it allows a user
to override the accelerator for accessibility purposes.

We also are not automatically grabbing on left-click.  Besides the inability to
tie mouse clicks to an accelerator, I think this behavior is hard to discover
and since it only happens depending on the guest state, it can lead to confusing
behavior.

This can be changed in the future if there's a strong resistence to dropping
left-click-to-grab, but I think we're better off dropping it.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1361367806-4599-6-git-send-email-aliguori@us.ibm.com
ui/gtk.c