From: Anthony Liguori <aliguori@us.ibm.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] sdl: Don't release input on mouse mode change in full-screen mode
Date: Mon, 22 Aug 2011 15:18:32 -0500 [thread overview]
Message-ID: <4E52B998.9080702@us.ibm.com> (raw)
In-Reply-To: <4E528702.40004@siemens.com>
On 08/22/2011 11:42 AM, Jan Kiszka wrote:
> While in full-screen mode, the input focus naturally belongs to the SDL
> window. Avoid dropping it when switching from absolute to relative
> mouse mode.
>
> Signed-off-by: Jan Kiszka<jan.kiszka@siemens.com>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> ui/sdl.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/ui/sdl.c b/ui/sdl.c
> index 385cc91..c7aaedf 100644
> --- a/ui/sdl.c
> +++ b/ui/sdl.c
> @@ -491,7 +491,9 @@ static void sdl_mouse_mode_change(Notifier *notify, void *data)
> absolute_enabled = 1;
> }
> } else if (absolute_enabled) {
> - sdl_grab_end();
> + if (!gui_fullscreen) {
> + sdl_grab_end();
> + }
> absolute_enabled = 0;
> }
> }
prev parent reply other threads:[~2011-08-22 20:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-22 16:42 [Qemu-devel] [PATCH] sdl: Don't release input on mouse mode change in full-screen mode Jan Kiszka
2011-08-22 20:18 ` 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=4E52B998.9080702@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=jan.kiszka@siemens.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).