summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/reds.c9
-rw-r--r--server/spice.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/server/reds.c b/server/reds.c
index a77dca21..b7cef9fd 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -5647,6 +5647,15 @@ int spice_server_set_channel_security(SpiceServer *s,
return 0;
}
+int spice_server_set_mouse_absolute(SpiceServer *s, int absolute)
+{
+ uint32_t mode = absolute ? SPICE_MOUSE_MODE_CLIENT : SPICE_MOUSE_MODE_SERVER;
+
+ ASSERT(reds == s);
+ reds_set_mouse_mode(mode);
+ return 0;
+}
+
int spice_server_add_interface(SpiceServer *s, VDInterface *interface)
{
ASSERT(reds == s);
diff --git a/server/spice.h b/server/spice.h
index f9c3b670..c309c509 100644
--- a/server/spice.h
+++ b/server/spice.h
@@ -82,4 +82,6 @@ int spice_server_set_channel_security(SpiceServer *s,
spice_channel_name_t channel,
int security);
+int spice_server_set_mouse_absolute(SpiceServer *s, int absolute);
+
#endif