diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-03-04 10:57:09 +0100 |
---|---|---|
committer | Uri Lublin <uril@redhat.com> | 2010-03-08 04:15:36 +0200 |
commit | ffdf050cce98b3be61ccc44373441eff5915ad7f (patch) | |
tree | c80445484e10026dc67c28d8ef01dd114c407736 | |
parent | da00641f2f160d2d1a63d9c7c74f10f29bedee68 (diff) |
new libspice api: add spice_server_set_mouse_absolute()spice-server-0.4.2-2.el6
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | server/reds.c | 9 | ||||
-rw-r--r-- | server/spice.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/server/reds.c b/server/reds.c index b78f9883..7983fe4b 100644 --- a/server/reds.c +++ b/server/reds.c @@ -5632,6 +5632,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 ? RED_MOUSE_MODE_CLIENT : RED_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 c3fd97ae..fa927d83 100644 --- a/server/spice.h +++ b/server/spice.h @@ -83,4 +83,6 @@ int spice_server_set_channel_security(SpiceServer *s, spice_channel_t channel, int security); +int spice_server_set_mouse_absolute(SpiceServer *s, int absolute); + #endif |