qemu-devel
[Top][All Lists]
Advanced

[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: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH] gtk: Keep the pointer within window during input grab
Date: Fri, 11 Apr 2014 15:07:34 +0200

On Di, 2014-04-08 at 14:46 +0200, 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.

At least at X11 level it is possible to simply confine the pointer to a
certain window (see "man XGrabPointer").  Then you don't have to warp
the pointer.  Warping the pointer in absolute mode has ugly effects (see
2bda66028b4962c36d4eabe2995edab12df93691).

Other possible solution: Never ever grab the pointer in absolute mode.

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]