]> code.ossystems Code Review - openembedded-core.git/commit
qemu: add option to disable X grabs
authorRoss Burton <ross.burton@intel.com>
Wed, 18 Sep 2013 16:48:45 +0000 (17:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Sep 2013 16:51:55 +0000 (17:51 +0100)
commita60b1ebbb8f81245f3ccf25b3f9d63677de75b85
tree44d9a61fac10e6f26385060163eae467fd18e6ca
parentd9abcc0a2a691ca60cc1cb2f48f1748b0de73ac8
qemu: add option to disable X grabs

When the mouse pointer enters the qemu window it takes a pointer grab. This
doesn't sound too dangerous at first but it turns out that SDL will infinitely
busy-loop if it can't get the grab (e.g. if the screen is locked) and the
average autobuilder setup's X server will have locked the screen a few minutes
after boot.

The result is that on many autobuilders apparently random qemu instances (the
top-most one under the pointer) will hang during boot.

To resolve this add an option (via an environment variable) to never attempt a
grab.  The default behaviour remains to grab so that everyone else doesn't see
any change.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/files/disable-grabs.patch [new file with mode: 0644]
meta/recipes-devtools/qemu/qemu.inc