[Spice-devel] [PATCH spice-gtk 06/11] Do not send pointer motion of 0x0

Marc-André Lureau marcandre.lureau at gmail.com
Thu Dec 8 06:12:53 PST 2011


---
 gtk/channel-inputs.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gtk/channel-inputs.c b/gtk/channel-inputs.c
index bacbba3..a29c707 100644
--- a/gtk/channel-inputs.c
+++ b/gtk/channel-inputs.c
@@ -326,6 +326,9 @@ void spice_inputs_motion(SpiceInputsChannel *channel, gint dx, gint dy,
     if (SPICE_CHANNEL(channel)->priv->state != SPICE_CHANNEL_STATE_READY)
         return;
 
+    if (dx == 0 && dy == 0)
+        return;
+
     c = channel->priv;
     c->bs  = button_state;
     c->dx += dx;
-- 
1.7.7.3



More information about the Spice-devel mailing list