[Spice-devel] spice-gtk mouse notes
Marc-André Lureau
marcandre.lureau at gmail.com
Fri Dec 9 05:40:09 PST 2011
Hi
On Thu, Dec 8, 2011 at 4:48 PM, Hans de Goede <hdegoede at redhat.com> wrote:
> * When switching from client to server mode (do killall spice-vdagent in a
>
linux guest), 2 things stand out:
> 1) The guest mouse cursor does not drawn until a mouse event happens, so
> the
> usual showing of 2 mouse cursors when the mouse is not grabbed does not
> happen, which is confusing (the showing of 2 mouse cursors helps to
> explain
> that the guest cursor is frozen until a mouse grab happens)
>
I am not surprised there is issues in this case, as I haven't played with
mode switching yet.
2) The mouse does not get grabbed immediately even though
> "grab mouse in server mode" is enabled. After a click the mouse does
> get
> grabbed (but the guest cursor still does not get drawn until a mouse
> event
> which actually gets send to the guest is generated).
>
It can't grab immediately, as you may not be using your spice client, and
you don't want to steal the pointer from the user. Perhaps we could do it
when we have the pointer & focus?
* When pressing SHIFT+F12 to ungrab both the SHIFT and the F12 key events
> also
> get send to the guest (the SHIFT one is unavoidable, but IMHO we should
> not send
> the F12 events), this happens both with and without having keyboard
> grabbing
> enabled.
>
The nice thing about sending it to the guest too, is that you don't prevent
the user from using that key combination in the guest. Which is actually
very helpful when using spicy inside spicy, for instance. Fixing this is
trivial if we really prefer that behaviour.
--
Marc-André Lureau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20111209/e9ccc772/attachment.htm>
More information about the Spice-devel
mailing list