On Mon, Mar 26, 2012 at 03:06:22PM +0200, Gerd Hoffmann wrote:
> > +#if SPICE_SERVER_VERSION >= 0x000a03 /* 0.10.3 */
> > +info->has_mouse_mode = true;
> > +info->mouse_mode = g_strdup(spice_server_is_server_mouse(spice_server)
> > ?
> > +
On 03/26/12 15:30, Alon Levy wrote:
> On Mon, Mar 26, 2012 at 03:06:22PM +0200, Gerd Hoffmann wrote:
>>> +#if SPICE_SERVER_VERSION >= 0x000a03 /* 0.10.3 */
>>> +info->has_mouse_mode = true;
>>> +info->mouse_mode = g_strdup(spice_server_is_server_mouse(spice_server)
>>> ?
>>> +
On Mon, Mar 26, 2012 at 03:06:22PM +0200, Gerd Hoffmann wrote:
> > +#if SPICE_SERVER_VERSION >= 0x000a03 /* 0.10.3 */
> > +info->has_mouse_mode = true;
> > +info->mouse_mode = g_strdup(spice_server_is_server_mouse(spice_server)
> > ?
> > +
> +#if SPICE_SERVER_VERSION >= 0x000a03 /* 0.10.3 */
> +info->has_mouse_mode = true;
> +info->mouse_mode = g_strdup(spice_server_is_server_mouse(spice_server) ?
> +"server" : "client");
#else
info->mouse_mode = "unknown";
#endif
Add mouse_mode, either server or mouse, to qmp and hmp commands, based
on spice_server_is_server_mouse added in spice-server 0.10.3.
Signed-off-by: Alon Levy
---
hmp.c|2 ++
qapi-schema.json |7 ++-
ui/spice-core.c |5 +
3 files changed, 13 insertions(+), 1 delet