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:52:04 +0000 (17:52 +0100)
commita72648172f383ef9af0e568237d61eed7e86f625
tree3fcd55dfc298c2e859330688a5d6c44e59aecf08
parentdee494f0f3c1c58500c4537efcca9832531f90a0
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.

(From OE-Core rev: a60b1ebbb8f81245f3ccf25b3f9d63677de75b85)

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