Mouse button click generates extra motionnotify

Bug #721543 reported by Isak Lundin
6
This bug affects 1 person
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-xorg-input-mouse:
  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
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 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-1ubuntu3, 2.6.35-25-generic, x86_64: installed (WARNING! Diff between built and installed module!)
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: Gigabyte Technology Co., Ltd. P35C-DS3R
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-25-generic root=UUID=5674b45b-1181-44cc-b334-73304707550c ro quiet splash
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:bvnAwardSoftwareInternational,Inc.:bvrF6:bd10/29/2007:svnGigabyteTechnologyCo.,Ltd.:pnP35C-DS3R:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnP35C-DS3R:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
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

Revision history for this message
Isak Lundin (isak-lundin) wrote :
Revision history for this message
Isak Lundin (isak-lundin) wrote :

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

bugbot (bugbot)
affects: xorg (Ubuntu) → xserver-xorg-input-evdev (Ubuntu)
Revision history for this message
bugbot (bugbot) wrote :

Hey Isak,

Hi, have you had a chance to test if this bug is still present in natty?

If it does (and if you're the original reporter), please boot into natty
and run the command:

  apport-collect <bug-number>

which will update the bug with fresh logs and tag the bug as affecting
natty. (It is best to run this right after reproducing the problem.)

Changed in xserver-xorg-input-evdev (Ubuntu):
status: New → Incomplete
Revision history for this message
bugbot (bugbot) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in xserver-xorg-input-evdev (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.