[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] gtk: Keep the pointer within window during inpu
From: |
Cole Robinson |
Subject: |
Re: [Qemu-devel] [PATCH] gtk: Keep the pointer within window during input grab |
Date: |
Tue, 08 Apr 2014 18:46:14 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 04/08/2014 08:46 AM, Takashi Iwai wrote:
> The current code shows annoying behavior where the X pointer can move
> out of the window during the input grab in the absolute mode. Due to
> this, the pointer in qemu window looks as if frozen until the real
> (invisible) X pointer comes back to the window again.
>
> For avoiding such an unexpected lag, this patch limits the pointer
> movement only within the qemu window during the input grab in the
> absolute mode. When the pointer goes out, it's moved back to the
> boundary again.
>
> Signed-off-by: Takashi Iwai <address@hidden>
> ---
> ui/gtk.c | 51 ++++++++++++++++++++++++++++++---------------------
> 1 file changed, 30 insertions(+), 21 deletions(-)
>
Tested with gtk2 and gtk3
Tested-by: Cole Robinson <address@hidden>
Reviewed-by: Cole Robinson <address@hidden>
- Cole