Mouse clicks are offset from the pointer

Bug #780536 reported by ooze
This bug report is a duplicate of:  Bug #772612: maximized window is displaced. Edit Remove
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Unity
Invalid
Undecided
Unassigned
compiz (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: unity

This bug is very similar to bug #755406, but since the original bug is reported to be caused by wine applications and I didn't use wine, I am filing a separate bug.

I launched a KVM virtual machine with a graphical window. At some point, the guest operating system changes the screen resolution so the size of the window adapts. The window is then the same size of the physical screen, so compiz/unity detects that and makes the window fullscreen. I changed the screen resolution in the guest OS to a smaller size and resized an moved the window.

At some point I realize that all the mouse clicks are about 20 pixels lower than the mouse pointer. After reading bug #755406, I click twice on the maximize window button try to maximize the KVM window that was fullscreen and restore it. After this the mouse clicks are no longer offset from the mouse pointer.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: unity 3.8.12-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Uname: Linux 2.6.38-8-generic-pae i686
NonfreeKernelModules: nvidia
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86 Kernel Module 173.14.30 Thu Apr 14 08:47:14 PDT 2011
 GCC version: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
Architecture: i386
CheckboxSubmission: 0378b0df62dc16d1ca4403d7647600ef
CheckboxSystem: 6ce041aeed0a2c17b3343b66d157175d
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,unitymtgrabhandles,scale,session,unityshell]
CompositorRunning: compiz
Date: Tue May 10 10:03:37 2011
DistUpgraded: Log time: 2011-04-29 18:31:29.775589
DistroCodename: natty
DistroVariant: ubuntu
DkmsStatus:
 nvidia-173, 173.14.30, 2.6.38-8-generic-pae, i686: installed
 nvidia-current, 270.41.06, 2.6.38-8-generic-pae, i686: installed
GraphicsCard:
 nVidia Corporation G72 [GeForce 7300 SE/7200 GS] [10de:01d3] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Elitegroup Computer Systems Device [1019:1213]
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
InstallationMedia_: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
InstallationMedia__: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
JockeyStatus:
 xorg:nvidia_173 - Pilote d'accélération graphique NVIDIA (Propriétaire, Activé, Non utilisé)
 xorg:nvidia_current - Pilote d'accélération graphique NVIDIA (Propriétaire, Désactivé, Non utilisé)
MachineType: Hewlett-Packard HP xw4400 Workstation
ProcEnviron:
 LANGUAGE=fr_CA:en
 PATH=(custom, user)
 LANG=fr_CA.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic-pae root=UUID=cd8c4c4b-e4ce-4cc5-b013-92599735297a ro crashkernel=384M-2G:64M,2G-:128M quiet splash vt.handoff=7
ProcVersionSignature_: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
ProcVersionSignature__: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Renderer: Unknown
SourcePackage: unity
UnitySupportTest: Warning: UNITY_FORCE_START enabled, no check for unity or compiz support.
UpgradeStatus: Upgraded to natty on 2011-05-02 (7 days ago)
dmi.bios.date: 12/07/2006
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 786D7 v02.02
dmi.board.name: 0A68h
dmi.board.vendor: Hewlett-Packard
dmi.chassis.asset.tag: 2UA708151K
dmi.chassis.type: 6
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvr786D7v02.02:bd12/07/2006:svnHewlett-Packard:pnHPxw4400Workstation:pvr:rvnHewlett-Packard:rn0A68h:rvr:cvnHewlett-Packard:ct6:cvr:
dmi.product.name: HP xw4400 Workstation
dmi.sys.vendor: Hewlett-Packard
version.compiz: compiz 1:0.9.4+bzr20110415-0ubuntu2
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu2
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu7.1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7

Revision history for this message
ooze (zoe-gauthier) wrote :
Revision history for this message
ooze (zoe-gauthier) wrote :

I can reproduce the bug simply by moving the mouse pointer into and then out of the KVM (qemu) window. When the mouse pointer is inside the window it is seems to be "captured" and is hidden. The offset seems to be related to the distance between the edge of the window and the position of the pointer when it reappears outside the window. Perhaps this happens to other SDL applications like games.

Revision history for this message
Scott Talbert (swt-techie) wrote :

I think I am seeing a similar condition. I think I got into it through running VirtualBox with a VirtualBox window maximized.

Revision history for this message
ooze (zoe-gauthier) wrote :

I am reassigning this bug from unity to compiz because I can reproduce this bug (although not reliably) with the legacy desktop on 11.04.

affects: unity (Ubuntu) → compiz (Ubuntu)
Changed in unity:
status: New → Invalid
Revision history for this message
ooze (zoe-gauthier) wrote :

I am marking this bug as a duplicate of #772612, which is where the main discussion about this bug happens. There is a new version of compiz available today, so I will try to reproduce the problem again.

Changed in compiz (Ubuntu):
status: New → Confirmed
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.