|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCH] monitor: avoid moving cursor during "mouse_button" command |
Date: | Mon, 02 May 2011 08:57:53 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110318 Red Hat/3.1.9-3.el6_0 Thunderbird/3.1.9 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |