From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXeme-0004CN-Du for qemu-devel@nongnu.org; Tue, 08 Apr 2014 18:46:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXemZ-00025t-Gm for qemu-devel@nongnu.org; Tue, 08 Apr 2014 18:46:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXemZ-00025h-8N for qemu-devel@nongnu.org; Tue, 08 Apr 2014 18:46:19 -0400 Message-ID: <53447C36.7010708@redhat.com> Date: Tue, 08 Apr 2014 18:46:14 -0400 From: Cole Robinson MIME-Version: 1.0 References: <1396961209-8104-1-git-send-email-tiwai@suse.de> In-Reply-To: <1396961209-8104-1-git-send-email-tiwai@suse.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] gtk: Keep the pointer within window during input grab List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Takashi Iwai , qemu-devel@nongnu.org Cc: Gerd Hoffmann , Anthony Liguori 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 > --- > ui/gtk.c | 51 ++++++++++++++++++++++++++++++--------------------- > 1 file changed, 30 insertions(+), 21 deletions(-) > Tested with gtk2 and gtk3 Tested-by: Cole Robinson Reviewed-by: Cole Robinson - Cole