diff options
author | Dustin Kirkland <kirkland@canonical.com> | 2009-09-17 15:48:04 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-06 14:36:09 -0500 |
commit | f0a3c3286c2981d15bfae9c9e3e6604bbe1ac995 (patch) | |
tree | cd2f18ba56b3f3dbb5ceb68e0cf9accc812e71f8 /vl.c | |
parent | 6b7cb2b0a9f512732da9120e20491f09d54e1432 (diff) | |
download | qemu-f0a3c3286c2981d15bfae9c9e3e6604bbe1ac995.tar.gz qemu-f0a3c3286c2981d15bfae9c9e3e6604bbe1ac995.tar.bz2 qemu-f0a3c3286c2981d15bfae9c9e3e6604bbe1ac995.zip |
offer right-ctrl as a grab option
Add support for -ctrl-grab to use the right-ctrl button to grab/release
the mouse in SDL.
The multi-button ctrl-alt and ctrl-alt-shift grab buttons present an
accessibility problem to users who cannot press more than one button
at a time.
https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/237635
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -247,6 +247,7 @@ int old_param = 0; #endif const char *qemu_name; int alt_grab = 0; +int ctrl_grab = 0; #if defined(TARGET_SPARC) || defined(TARGET_PPC) unsigned int nb_prom_envs = 0; const char *prom_envs[MAX_PROM_ENVS]; @@ -5310,6 +5311,9 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_alt_grab: alt_grab = 1; break; + case QEMU_OPTION_ctrl_grab: + ctrl_grab = 1; + break; case QEMU_OPTION_no_quit: no_quit = 1; break; |