vnc: make sure to send pointer type change event on SetEncodings
authorAnthony Liguori <aliguori@us.ibm.com>
Tue, 4 May 2010 13:28:13 +0000 (08:28 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 4 May 2010 13:44:29 +0000 (08:44 -0500)
Commit 37c34d9d5d87ea9d51760310c8863b82cb8c055a introduced a regression when
using relative mouse mode with a client that understands the PointerTypeChange
pseudo-encoding.

Reported-by: Marcelo Tosatti <mtosatti@redhat.com>
Reported-by: Gerhard Wiesinger <lists@wiesinger.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc.c

diff --git a/vnc.c b/vnc.c
index 5241a6aa69174548a1e3d763bd0cd2cec20632ab..b1a3fdb30bd3b89df2a3d45ab60c19c9e8cb83ef 100644 (file)
--- a/vnc.c
+++ b/vnc.c
@@ -1642,6 +1642,8 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings)
             break;
         }
     }
+
+    check_pointer_type_change(&vs->mouse_mode_notifier);
 }
 
 static void set_pixel_conversion(VncState *vs)