From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Cc: Mark McLoughlin <markmc@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] Handle SDL grabs failing
Date: Thu, 15 Jan 2009 14:48:16 -0600 [thread overview]
Message-ID: <496FA110.1050206@codemonkey.ws> (raw)
In-Reply-To: <1232017217-29545-1-git-send-email-markmc@redhat.com>
Mark McLoughlin wrote:
> If a X window is not viewable, XGrabPointer() fails and
> returns GrabNotViewable. SDL's X backend currently handles
> this by retrying the grab until the window becomes viewable
> again.
>
> This means e.g. if you Ctrl-Alt-RightArrow to switch
> workspaces, QEMU tries to grab, SDL blocks because the
> window isn't viewable and your guest stops executing until
> you switch back to that workspace again.
>
> See this Fedora bug for the gory details:
>
> https://bugzilla.redhat.com/480065
>
> Some SDL backends will return SDL_GRAB_OFF from
> SDL_WM_GrabInput(), so the fix is to make the X backend do
> this if the grab fails.
>
> The only side-effect in QEMU is that if SDL_WM_GrabInput()
> fails we still change the window title to indicate that it's
> grabbed, when in fact it's not. This patch fixes that minor
> issue.
>
> Signed-off-by: Mark McLoughlin <markmc@redhat.com>
>
Nice catch! This has been a long standing bug.
Applied. Thanks.
Regards,
Anthony Liguori
prev parent reply other threads:[~2009-01-15 20:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-15 11:00 [Qemu-devel] [PATCH] Handle SDL grabs failing Mark McLoughlin
2009-01-15 20:48 ` Anthony Liguori [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=496FA110.1050206@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=markmc@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).