[Spice-devel] [Qemu-devel] Re: paravirtual mouse/tablet

Gerd Hoffmann kraxel at redhat.com
Thu Jan 13 09:08:55 PST 2011


On 01/13/11 16:55, Anthony Liguori wrote:
> On 01/13/2011 05:51 AM, Gerd Hoffmann wrote:
>> On 01/13/11 12:01, Stefan Hajnoczi wrote:
>>
>>> Can you elaborate how the spice display channel comes into play? On a
>>> physical machine you just have input devices with no notion of
>>> display. It's up to the windowing system to process input events and
>>> handle multihead. Why does a pv tablet tie itself to a display
>>> channel?
>>
>> You have two qxl devices, each linked to a spice display channel. The
>> spice client will open one window for each channel. The mouse position
>> is a triple consisting of (x, y, window/channel).
>>
>
> Would be slightly cleaner to have multiple devices.

Yea, right, that would work too.  If we have some way to assign a 
display to a pvmouse device this works equally well.

> That maybe implies that we need an offscreen coordinate for the
> mouse so that you can hide the mouse when it leaves one window.

Hmm?  I fail to see why multihead is special here.

cheers,
   Gerd



More information about the Spice-devel mailing list