Mouse/window de-synchronization during window dragging (Video)

Bug #886192 reported by Yousry Abdallah on 2011-11-04
80
This bug affects 17 people
Affects Status Importance Assigned to Milestone
Compiz
Medium
Unassigned
Compiz Core
Medium
Unassigned
Compiz Main Plugins
Medium
Unassigned
Compiz Snapping Windows Plugin
Medium
Unassigned
compiz (Ubuntu)
Low
Unassigned
compiz-plugins-main (Ubuntu)
Undecided
Unassigned

Bug Description

WORKAROUND:
1. Run "ccsm" (from the "compizconfig-settings-manager" package).
2. Scroll down to "Window Management" and disable "Snapping Windows".

ORIGINAL DESCRIPTION:
Example: http://www.youtube.com/watch?v=XQkmXSshgbQ

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: unity 4.24.0-0ubuntu2b1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: fglrx
.tmp.unity.support.test.0:

ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,place,vpswitch,mousepoll,compiztoolbox,wall,grid,imgpng,resize,gnomecompat,session,snap,move,regex,animation,unitymtgrabhandles,workarounds,expo,fade,ezoom,scale,unityshell]
CompositorRunning: compiz
Date: Fri Nov 4 16:42:41 2011
DistUpgraded: Log time: 2011-10-14 09:30:07.100128
DistroCodename: oneiric
DistroVariant: ubuntu
DkmsStatus: fglrx, 8.902, 3.0.0-12-generic, x86_64: installed
GraphicsCard:
 ATI Technologies Inc Juniper [Radeon HD 5700 Series] [1002:68b8] (prog-if 00 [VGA controller])
   Subsystem: PC Partner Limited Device [174b:1482]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
JockeyStatus:
 xorg:fglrx_updates - ATI/AMD proprietary FGLRX graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
 xorg:fglrx - ATI/AMD proprietary FGLRX graphics driver (Proprietary, Enabled, In use)
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=4e6d264a-b802-401c-a60e-0ff10c31728e ro quiet splash vt.handoff=7
SourcePackage: unity
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (21 days ago)
dmi.bios.date: 06/24/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.20
dmi.board.name: 880GXH/USB3
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.20:bd06/24/2010:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rn880GXH/USB3:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu5
version.fglrx-installer: fglrx-installer N/A
version.ia32-libs: ia32-libs 20090808ubuntu26
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11-0ubuntu3
version.xserver-xorg: xserver-xorg 1:7.6+7ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20110811.g93fc084-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.901-1ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1

affects: unity (Ubuntu) → compiz (Ubuntu)
Changed in compiz (Ubuntu):
importance: Undecided → Low
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in compiz (Ubuntu):
status: New → Confirmed
Changed in compiz-core:
status: New → Triaged
importance: Undecided → Medium
Daniel van Vugt (vanvugt) wrote :

I think the primary cause of this bug is that the move plugin uses relative movement;
   window->move(dx, dy)
whereas it should be absolute; something like:
   window->moveTo(x, y)

You can always know the coordinate of the title bar (or the window) that the user grabbed, and ensure you are always moving the window to a location that keeps the location of the pointer relative to the window constant.

Download full text (4.3 KiB)

On Tue, 21 Feb 2012, Daniel van Vugt wrote:

> I think the primary cause of this bug is that the move plugin uses relative movement;
> window->move(dx, dy)
> whereas it should be absolute; something like:
> window->moveTo(x, y)
>
> You can always know the coordinate of the title bar (or the window) that
> the user grabbed, and ensure you are always moving the window to a
> location that keeps the location of the pointer relative to the window
> constant.

Well really, plugins should use configureXWindow where possible, which
uses absolute co-ordinates. ::move is going away anyways / being moved (no
pun intended) into a deprecated codepath that uses configureXWindow....
when I get time to actually pick up my work on that again :(

>
> --
> You received this bug notification because you are a member of Compiz
> Maintainers, which is the registrant for Compiz Core.
> https://bugs.launchpad.net/bugs/886192
>
> Title:
> Mouse/window de-synchronization during window dragging (Video)
>
> Status in Compiz Core:
> Triaged
> Status in “compiz” package in Ubuntu:
> Confirmed
>
> Bug description:
> Example: http://www.youtube.com/watch?v=XQkmXSshgbQ
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.10
> Package: unity 4.24.0-0ubuntu2b1
> ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
> Uname: Linux 3.0.0-12-generic x86_64
> NonfreeKernelModules: fglrx
> .tmp.unity.support.test.0:
>
> ApportVersion: 1.23-0ubuntu4
> Architecture: amd64
> CompizPlugins: [core,bailer,detection,composite,opengl,decor,place,vpswitch,mousepoll,compiztoolbox,wall,grid,imgpng,resize,gnomecompat,session,snap,move,regex,animation,unitymtgrabhandles,workarounds,expo,fade,ezoom,scale,unityshell]
> CompositorRunning: compiz
> Date: Fri Nov 4 16:42:41 2011
> DistUpgraded: Log time: 2011-10-14 09:30:07.100128
> DistroCodename: oneiric
> DistroVariant: ubuntu
> DkmsStatus: fglrx, 8.902, 3.0.0-12-generic, x86_64: installed
> GraphicsCard:
> ATI Technologies Inc Juniper [Radeon HD 5700 Series] [1002:68b8] (prog-if 00 [VGA controller])
> Subsystem: PC Partner Limited Device [174b:1482]
> InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
> JockeyStatus:
> xorg:fglrx_updates - ATI/AMD proprietary FGLRX graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
> xorg:fglrx - ATI/AMD proprietary FGLRX graphics driver (Proprietary, Enabled, In use)
> MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
> ProcEnviron:
> PATH=(custom, user)
> LANG=de_DE.UTF-8
> SHELL=/bin/bash
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=4e6d264a-b802-401c-a60e-0ff10c31728e ro quiet splash vt.handoff=7
> SourcePackage: unity
> UpgradeStatus: Upgraded to oneiric on 2011-10-14 (21 days ago)
> dmi.bios.date: 06/24/2010
> dmi.bios.vendor: American Megatrends Inc.
> dmi.bios.version: P1.20
> dmi.board.name: 880GXH/USB3
> dmi.board.vendor: ASRock
> dmi.chassis.asset.tag: To Be Filled By O.E.M.
> dmi.chassis.type: 3
> dmi.chassis.vendor: To Be Filled By O.E.M.
> dmi.chassis.version: To Be Filled By O.E.M.
> dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.20:bd06/24/2010:svnT...

Read more...

DudeOmega (niclos69) wrote :

I know this is not a fix but a work around

install ccsm go to

snappining windows/behaviour/

uncheck edge resistance

seem's to work for me

Exeleration-G (exeleration-g) wrote :

The workaround worked for me too.

Daniel van Vugt (vanvugt) wrote :

Added workaround to the Bug Description (thanks niclos69). Scroll up to the top of the bug to see it.

Is there anyone for whom the workaround doesn't work?

description: updated
Changed in compiz-plugins-main:
status: New → Confirmed
status: Confirmed → Triaged
Changed in compiz-snap-plugin:
status: New → Triaged
Changed in compiz-plugins-main (Ubuntu):
status: New → Confirmed
Changed in compiz-plugins-main:
importance: Undecided → Medium
Changed in compiz-snap-plugin:
importance: Undecided → Medium
DudeOmega (niclos69) wrote :

this but is in 12.04 as well.

DudeOmega (niclos69) wrote :

lol I mean "bug" not "but".

Sven Romeike (lun4tic) wrote :

confirming 12.04 as well

Jonah Bron (jonahbron) wrote :

When I pull a window away from an edge, it doesn't restore the window's width, only the height. And when I pull a window away from the top, my cursor is on the window, but it's at the very top edge, not where I actually clicked. Running Ubuntu 12.04. Confirmed on both my desktop machine and my laptop.

Daniel van Vugt (vanvugt) wrote :

Jonah, the issue with the window width is bug 878516.

Changed in compiz:
importance: Undecided → Medium
status: New → Triaged
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 201681, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers