Mouse button click generates extra motionnotify
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xserver-xorg-input-evdev (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: xorg
Release: Ubuntu 10.10
xorg:
Installed: 1:7.5+6ubuntu3
Candidate: 1:7.5+6ubuntu3
xserver-
Installed: 1:1.5.0-2build1
Candidate: 1:1.5.0-2build1
Expected behaviour: Right clicking object brings up context menu allowing me to chose what to do.
Actual behaviour: Right clicking objects instantly selects the first available menu alternative, as if I had pressed right button, held it down, moved it to said alternative and then released.
Note: Same applies for left mouse button, it just doesn't matter as much in most applications.
Details: When clicking either mouse button, an extra motionnotify event is inserted between the buttonpress event and the buttonrelease event. This causes right click menus in some applications (gnome termina, chrome, and several others) to automatically launch the top alternative. For instance, a single right click inside a gnome terminal automatically creates another terminal window, so quickly that the context menu doesn't even have time to appear.
I also dual boot an up to date Arch Linux installation, and this behaviour does not exist there. That particular installation runs X version 1.9.4, Ubuntu 10.10 seems to run 1.9.0.
Output from xev whenever click a mouse button:
ButtonRelease event, serial 37, synthetic NO, window 0x4a00002,
root 0x291, subw 0x0, time 2876456, (164,178), root:(167,233),
state 0x110, button 1, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x4a00002,
root 0x291, subw 0x0, time 2876808, (164,178), root:(167,233),
state 0x10, is_hint 0, same_screen YES
ButtonPress event, serial 37, synthetic NO, window 0x4a00002,
root 0x291, subw 0x0, time 2876858, (164,178), root:(167,233),
state 0x10, button 3, same_screen YES
Also, some mice work, some don't. This happens on an a4Tech X-718F laser mouse. My Microsoft Explorer Mini mouse works allright. Still, since the issue doesn't exist with either mouse in Arch, using newer xorg, i don't really think it's a hardware issue.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: xorg 1:7.5+6ubuntu3
ProcVersionSign
Uname: Linux 2.6.35-25-generic x86_64
NonfreeKernelMo
.proc.driver.
.proc.driver.
.proc.driver.
NVRM version: NVIDIA UNIX x86_64 Kernel Module 270.18 Tue Jan 18 21:46:26 PST 2011
GCC version: gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
Architecture: amd64
Date: Fri Feb 18 22:42:54 2011
DkmsStatus:
nvidia-current, 270.18, 2.6.35-25-generic, x86_64: installed
nvidia-current, 270.18, 2.6.35-22-generic, x86_64: installed
dahdi, 2.2.1+dfsg-
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: Gigabyte Technology Co., Ltd. P35C-DS3R
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: xorg
dmi.bios.date: 10/29/2007
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F6
dmi.board.name: P35C-DS3R
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSof
dmi.product.name: P35C-DS3R
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
system:
distro: Ubuntu
codename: maverick
architecture: x86_64
kernel: 2.6.35-25-generic
affects: | xorg (Ubuntu) → xserver-xorg-input-evdev (Ubuntu) |
Actually, this would be the correct output order (copy paste mistake):
ButtonPress event, serial 37, synthetic NO, window 0x4a00002,
root 0x291, subw 0x0, time 2876858, (164,178), root:(167,233),
state 0x10, button 3, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x4a00002,
root 0x291, subw 0x0, time 2876888, (164,178), root:(167,233),
state 0x410, is_hint 0, same_screen YES
ButtonRelease event, serial 37, synthetic NO, window 0x4a00002,
root 0x291, subw 0x0, time 2876888, (164,178), root:(167,233),
state 0x410, button 3, same_screen YES