diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-04-16 22:17:49 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-04-16 22:17:49 +0000 |
commit | 92cb7d5423ed30a51ed9c9ea60cc674d4fa68820 (patch) | |
tree | fcdb0b0cdf0f3cc14485369406c09f61a2982d31 | |
parent | 202a456a2b2f6f331ee97618a485d8a74599a047 (diff) |
NT mouse fix (Mark Jonckheere)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@729 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | hw/pckbd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pckbd.c b/hw/pckbd.c index ae2cf27f16..2328d209f1 100644 --- a/hw/pckbd.c +++ b/hw/pckbd.c @@ -445,6 +445,10 @@ void kbd_mouse_event(int dx, int dy, int dz, int buttons_state) s->mouse_dx += dx; s->mouse_dy -= dy; s->mouse_dz += dz; + /* XXX: SDL sometimes generates nul events: we delete them */ + if (s->mouse_dx == 0 && s->mouse_dy == 0 && s->mouse_dz == 0 && + s->mouse_buttons == buttons_state) + return; s->mouse_buttons = buttons_state; if (!(s->mouse_status & MOUSE_STATUS_REMOTE) && |