VirtualBox

Opened 15 years ago

Closed 14 years ago

#4260 closed defect (fixed)

Mouse movement events sent after mouse clicks even if the mouse does not move -> fixed after 3.2.4

Reported by: Sam Morris Owned by:
Component: guest additions Version: VirtualBox 3.2.4
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

Related to the mouse movement issues I mentioned in #4086 the first comment: when I click a mouse button, the guest receives a button press/release event, followed immediately by a motion event, even though the mouse is not being moved.

The difference is that, now I'm using 2.2.4, the motion even occurs *after* the button events. This still results in annoying side-effects such as text being selected when clicking on a gnome-terminal window (since it thinks I just dragged the mouse pointer, I assume).

This can be observed in xev:

ButtonPress event, serial 33, synthetic NO, window 0x2000001,
    root 0x108, subw 0x0, time 4546735, (51,6), root:(421,441),
    state 0x10, button 1, same_screen YES

MotionNotify event, serial 33, synthetic NO, window 0x2000001,
    root 0x108, subw 0x0, time 4546735, (51,6), root:(421,441),
    state 0x110, is_hint 0, same_screen YES

ButtonRelease event, serial 33, synthetic NO, window 0x2000001,
    root 0x108, subw 0x0, time 4547431, (51,6), root:(421,441),
    state 0x110, button 1, same_screen YES

MotionNotify event, serial 33, synthetic NO, window 0x2000001,
    root 0x108, subw 0x0, time 4547431, (51,6), root:(421,441),
    state 0x10, is_hint 0, same_screen YES

Running evtest on the input device corresponding to the mouse device only shows button events; the motion events are not present. If I remove the vboxmouse device from the X server then the spurious motion events go away, so I guess the problem lies there.

Change History (7)

comment:1 by Michael Thayer, 15 years ago

Summary: Mouse movement events sent after mouse clicks even if the mouse does not moveMouse movement events sent after mouse clicks even if the mouse does not move -> fixed in SVN

Reproduced and fixed in SVN. The new code successfully passes on your testcase.

comment:2 by Sam Morris, 15 years ago

Yup, this is fixed in 3.0.0, I guess it can be closed?

Thanks btw :)

comment:3 by Frank Mehnert, 15 years ago

Resolution: fixed
Status: newclosed

Thanks for the feedback!

comment:4 by Sam Morris, 14 years ago

Resolution: fixed
Status: closedreopened

I am still seeing this with VirtualBox 3.2.0.

comment:5 by Frank Mehnert, 14 years ago

Version: VirtualBox 2.2.4VirtualBox 3.2.4

Confirmed.

comment:6 by Michael Thayer, 14 years ago

Summary: Mouse movement events sent after mouse clicks even if the mouse does not move -> fixed in SVNMouse movement events sent after mouse clicks even if the mouse does not move -> fixed after 3.2.4

It should be squashed again now. Sorry about that.

comment:7 by Frank Mehnert, 14 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use