Commit 92cb7d5423ed30a51ed9c9ea60cc674d4fa68820

Authored by bellard
1 parent 202a456a

NT mouse fix (Mark Jonckheere)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@729 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 0 deletions
hw/pckbd.c
... ... @@ -445,6 +445,10 @@ void kbd_mouse_event(int dx, int dy, int dz, int buttons_state)
445 445 s->mouse_dx += dx;
446 446 s->mouse_dy -= dy;
447 447 s->mouse_dz += dz;
  448 + /* XXX: SDL sometimes generates nul events: we delete them */
  449 + if (s->mouse_dx == 0 && s->mouse_dy == 0 && s->mouse_dz == 0 &&
  450 + s->mouse_buttons == buttons_state)
  451 + return;
448 452 s->mouse_buttons = buttons_state;
449 453  
450 454 if (!(s->mouse_status & MOUSE_STATUS_REMOTE) &&
... ...