diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2015-03-24 17:50:12 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-04-27 12:47:04 +0200 |
commit | dc8dceee64f45820c20f3ffa3c3fecd7b6539990 (patch) | |
tree | 1070df76dd0b19e12e20c5b86400f72f64c33f0b /include/ui/spice-display.h | |
parent | d0df04a1569c75f6442123fdda0b2e9aadc3fcc7 (diff) | |
download | qemu-dc8dceee64f45820c20f3ffa3c3fecd7b6539990.zip qemu-dc8dceee64f45820c20f3ffa3c3fecd7b6539990.tar.gz qemu-dc8dceee64f45820c20f3ffa3c3fecd7b6539990.tar.bz2 |
spice: set pointer position on hotspot
The Spice protocol uses cursor position on hotspot: the client is
applying hotspot offset when drawing the cursor.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui/spice-display.h')
-rw-r--r-- | include/ui/spice-display.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ui/spice-display.h b/include/ui/spice-display.h index 53883a1..b25328a 100644 --- a/include/ui/spice-display.h +++ b/include/ui/spice-display.h @@ -97,7 +97,8 @@ struct SimpleSpiceDisplay { /* cursor (without qxl): displaychangelistener -> spice server */ SimpleSpiceCursor *ptr_define; SimpleSpiceCursor *ptr_move; - uint16_t ptr_x, ptr_y; + int16_t ptr_x, ptr_y; + int16_t hot_x, hot_y; /* cursor (with qxl): qxl local renderer -> displaychangelistener */ QEMUCursor *cursor; |