All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] sdl: Don't release input on mouse mode change in full-screen mode
@ 2011-08-22 16:42 Jan Kiszka
  2011-08-22 20:18 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2011-08-22 16:42 UTC (permalink / raw)
  To: Anthony Liguori, qemu-devel

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>
---
 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;
     }
 }
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] sdl: Don't release input on mouse mode change in full-screen mode
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2011-08-22 20:18 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: qemu-devel

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;
>       }
>   }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-22 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.