← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 721543] [NEW] Mouse button click generates extra motionnotify

 

Public bug reported:

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

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug click context maverick menu mouse right xorg

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in ubuntu.
https://bugs.launchpad.net/bugs/721543

Title:
  Mouse button click generates extra motionnotify



Follow ups

References