summaryrefslogtreecommitdiffstats
path: root/spice.proto
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-19 16:27:42 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-19 16:28:23 +0200
commite646529d2e72ccd5b25f88adcf2c37f15c601408 (patch)
tree29dbfe2292ff56e642b1dd5bbafb0235c8b26f2e /spice.proto
parent38809803807637336209a89822e12bb5f22148ca (diff)
downloadspice-e646529d2e72ccd5b25f88adcf2c37f15c601408.tar.gz
spice-e646529d2e72ccd5b25f88adcf2c37f15c601408.tar.xz
spice-e646529d2e72ccd5b25f88adcf2c37f15c601408.zip
Don't send CursorHeader if cursor_flags is NONE
Diffstat (limited to 'spice.proto')
-rw-r--r--spice.proto5
1 files changed, 4 insertions, 1 deletions
diff --git a/spice.proto b/spice.proto
index f24445b0..3f7c30c9 100644
--- a/spice.proto
+++ b/spice.proto
@@ -874,7 +874,10 @@ struct CursorHeader {
struct Cursor {
cursor_flags flags;
- CursorHeader header;
+ switch (flags) {
+ case !NONE:
+ CursorHeader header;
+ } u @anon;
uint8 data[] @as_ptr(data_size);
};