From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGn5J-0004l5-D3 for qemu-devel@nongnu.org; Mon, 02 May 2011 02:58:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGn5I-0005Ou-GC for qemu-devel@nongnu.org; Mon, 02 May 2011 02:58:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGn5I-0005Op-6y for qemu-devel@nongnu.org; Mon, 02 May 2011 02:58:20 -0400 Message-ID: <4DBE55F1.9000704@redhat.com> Date: Mon, 02 May 2011 08:57:53 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1302248640-24913-1-git-send-email-bradh@frogmouth.net> <20110408133708.2a25946a@doriath> <4DB94581.5080407@redhat.com> <201104301009.37314.bradh@frogmouth.net> In-Reply-To: <201104301009.37314.bradh@frogmouth.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] monitor: avoid moving cursor during "mouse_button" command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Brad Hards Cc: qemu-devel@nongnu.org Hi, > The problem is that almost all input code (in absolute mode) keeps track of > the position itself - monitor was the exception. > > So a sequence like the following: > 1. Move cursor in SDL > 2. Use mouse_move in monitor > 3. Use mouse_button 2 in monitor > 4. Click mouse in SDL > works ok up to step 3, but step 4 causes the pointer to warp back to where it > was at the end of step 1. There is DisplayState->mouse_set() which can be used to ask the UI to warp the pointer to some place. When using that one you should see the mouse move according to the monitor command on the SDL display. cheers, Gerd