Window management - Cursor position changes relative to window while dragging windows

Bug #201681 reported by TheAceOfFire
416
This bug affects 91 people
Affects Status Importance Assigned to Milestone
Ayatana Design
Fix Committed
Critical
John Lea
Compiz
Fix Released
High
Daniel van Vugt
0.9.8
Fix Released
High
Daniel van Vugt
Compiz Main Plugins
Invalid
High
Unassigned
compiz (Ubuntu)
Fix Released
High
Daniel van Vugt
Quantal
Won't Fix
Undecided
Unassigned

Bug Description

[Test Case]

1. Open any window that is not fullscreen or maximized
2. Click and drag the title bar around the desktop
   -> Make sure that the cursor always stays on the same position relative to the window

[Regression Potential]

No obvious regression potential.

Original description:

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

ORIGINAL DESCRIPTION:
If you quickly drag a window the cursor will start floating off the title bar.

If you keep quickly switching desktops via drag (I used a circle type motion), you can get it so far apart that your cursor is on one screen and the folder window is on another.

Another way to reproduce this bug is to *quickly* drag a window to the top of the screen and trigger the 'maximise preview transition' followed by moving the mouse downwards without releasing the window. Repeat multiple times without releasing the window to accentuate the effect.

I expected the mouse to stay in the same position on the window title bar, not go wandering off. If you let go, window stays where it looks like it is, does not zoom to be under mouse (Which is good I guess).

Note there is a related issue when restoring maximised windows by right click holding on the menu bar and dragging downwards. After performing this action the pointer should always be attached to the window title bar, but it currently ends up some distance away.

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

------------------------
Desired resolution:

- When dragging a window by the window title bar using a pointer, the pointer should always stay attached to *exactly* the same position of the window title bar.

Related branches

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom reproducible in 8.10 or 9.04?

Changed in compiz:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in compiz:
status: Incomplete → Invalid
Revision history for this message
TheAceOfFire (theaceoffire) wrote :

Sorry for such a long delay.

I am currently using Ubuntu 8.10, using the built in compiz-fuzion.

I am using a single monitor (Using an Nvidia PCI video card), and have 6 virtual desktops, three screens on three screens.

When moving a non-maximized window in a rapid circle motion from one window to another, (Like accross the verticle border or from one window to a side one), really fast in a circle pattern, the mouse will move every so slightly away from where I originally clicked on the window.

Repeating the motions moves the mouse farther and farther away.

I have wobbly windows on, but the error still occurs when I turn it back off.

Is there any info I should include to help out?

Revision history for this message
TheAceOfFire (theaceoffire) wrote :

Someone asked if this was still present in 8.10, and I have checked: The error still occurs with and without wobbly windows.

Changed in compiz:
status: Invalid → New
Revision history for this message
Scott Howard (showard314) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release (maybe live CD)? Thanks in advance.

If it does, can you include the following files:
~/.xsession-errors
 /var/log/Xorg.0.log

and the output of lspci -vvnn.

Also try to see if the bug happens with the default settings. To get the default settings, install "compiz-config-manager", launch it and then go to "Preferences" (left bottom corner) and click on the "Reset to defaults" button.

Changed in compiz (Ubuntu):
status: New → Incomplete
Revision history for this message
TheAceOfFire (theaceoffire) wrote :

I will do so after work today, however I can only use the live CD if I change my motherboard to prefer "Onboard Video" over PCI.

So when I get home I will try the following:
(Set motherboard to use Onboard Video) Test if bug happens with live CD copy of 9.04
(Set motherboard to use Onboard Video) Test if bug happens with live CD copy of 9.04, with compiz-fuzion set to "off"

If either of those cause this issue to occur, I will attach "~/.xsession-errors" and "/var/log/Xorg.0.log", as well as the output of "lspci -vnn"

After that, I will try the following:
(Set motherboard to use PCI Video)
Test if bug happens with recently installed fresh 9.04 (I did a complete format recently, so its all new stuff).
(Make sure that I am use compiz-config-manager),
Test if bug happens after resetting compiz with the "Reset to defaults" option

If either of those also cause the issue, I will attach "~/.xsession-errors" and "/var/log/Xorg.0.log", as well as the output of "lspci -vnn".

^_^ I think I can get this done by 5:00pm on Thursday, May 07, 2009 Central Time, unless something delays me.

Revision history for this message
TheAceOfFire (theaceoffire) wrote :

Ok, On the live CD of 9.04 (For 86 processor), it still does it. I attached a screenshot.

In a second I will post the txt commands asked for.

Revision history for this message
TheAceOfFire (theaceoffire) wrote :

So to get the results above, I started the live cd, went to the terminal and tried to install "compiz-config-manager", but it didn't come up...

So I went to "Applications", and went to "Add - Remove", choose "Select from All", and searched for compiz.

After installing "Advanced Desktop Effects Settings (CCSM)", I set it with a 3x3 desktop and wobbly windows, everything else as default, and thats it.

If you grab a window and drag it rappidly accross virtual desktops, the cursor will drift off the title bar as described by my original post.

Attached is the three files requested, after sending them I will reset Compiz, and test it without 3x3 and wobbly windows.

Revision history for this message
TheAceOfFire (theaceoffire) wrote :

O.O Holy Crud, it happens with default!

With two virtual desktops, and no wobbly windows, I can still get the cursor to move off the title bar (I included in the zip file a picture to show how far off I got).

To make the cursor drift, all I had to do was drag the window very quickly between the two virutal screens. After about 10 moves, it started to go off to the left of the window as shown.

Included in package 2 is the following:
2nd screen shot, showing how with 2 virtual screens and no wobbly windows it still moved off the title bar
.xSession-errors
/var/log/Xorg.0.log
lspci -vnn

Revision history for this message
Scott Howard (showard314) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in compiz (Ubuntu):
status: Incomplete → Confirmed
Changed in compiz (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
jhfhlkjlj (fdsuufijjejejejej-deactivatedaccount) wrote :

This bug is still reproducable on Oneiric. I haven't tested Precise/bleeding edge versions, though.

description: updated
description: updated
summary: - Cursor position changes while dragging objects
+ Cursor position changes while dragging windows
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Cursor position changes while dragging windows

I can reproduce this bug on an old (slow) netbook. And I thought I saw more duplicates of this bug, but can't find them again...

Changed in compiz-core:
status: New → Triaged
importance: Undecided → Medium
Omer Akram (om26er)
Changed in compiz (Ubuntu):
importance: Low → Medium
Changed in compiz:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Confirming this one on Ubuntu 12.04 as of now, with proposed enabled and all current updates applied. Using proprietary nvidia-driver. Grab a window and juggle it around, especially hitting some maximization spots like the top bar or left/right edges, and the cursor can easilly become "detached" from title bar while grabbing/moving. So the mouse cursor visually grabs into thin air while still having a hold of the window.

description: updated
tags: added: natty oneiric precise quantal
Changed in compiz:
milestone: none → 0.9.8.0
John Lea (johnlea)
Changed in ayatana-design:
assignee: nobody → John Lea (johnlea)
importance: Undecided → Critical
status: New → Triaged
Changed in compiz (Ubuntu):
importance: Medium → Critical
tags: added: udp
description: updated
John Lea (johnlea)
description: updated
Omer Akram (om26er)
no longer affects: compiz-core
Revision history for this message
Bogo Nomicon (miscbma) wrote :

I see this happening when I try moving a window, and a window edge moves beyond the edge of the screen. When that happens, the window will jump to being all on the screen, and the cursor will still be where it was originally. This means the cursor is often nolonger over the window top bar. This could easily be related to the same code changes that cause the bug I just reported on windows jumping back to the screen edges.

Revision history for this message
Bogo Nomicon (miscbma) wrote :

https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1017374
The bug report I mentioned in my last post.

Text from that bug report: When a window is at the edge of the screen and is resized to full screen. When you later resize to nolonger being full screen, when you try to move the weindow to a new location away from the edge of teh screen the window will snap back to the edge of the screen it was originally against when if was first sized to full screen. It happens with all the programs I have tested it with, including, but not limited to, Firefox, xterm, and mplayer. I'm using Gnome Classic.

John Lea (johnlea)
description: updated
hexafraction (rarkenin)
summary: - Cursor position changes while dragging windows
+ Cursor position changes relative to window while dragging windows
Revision history for this message
Phil Hord (phil-phord) wrote : Re: Cursor position changes relative to window while dragging windows

Possibly related bugs with different reported symptoms:

Bug 1014507: Drag & Drop of window to other desktop separates mouse position from window position
Bug 903846: cursor is placed much above the window border after dragging a snapped window

Revision history for this message
Daniel Pfeiffer (occitan-a) wrote :

I am also experiencing this in 12.04 Unity 3D in multiscreen mode. The edge resistance between the screens (which I love) is very annoyingly much weaker for mouse movements than for window movements – when it should be the same. The window edge will hang at the screen edge, while the mouse moves near it and beyond onto the other screen. Now I am still effectively dragging the window, even though the mouse is completely outside it. If I speed up mouse movement a lot, the window will then follow onto the next viewport, but far behind the mouse.

John Lea (johnlea)
Changed in compiz:
importance: Medium → Critical
John Lea (johnlea)
Changed in ayatana-design:
status: Triaged → Fix Committed
Revision history for this message
Tim Penhey (thumper) wrote :

John, this isn't a critical bug in compiz (there is no crash nor data loss).

Changed in compiz:
importance: Critical → Medium
Revision history for this message
John Lea (johnlea) wrote :

@thumper; Perhaps high then, given the number of duplicate bugs reported and people marked as 'also affects'? It *is* a very annoying bug that breaks the feeling of precision we are aiming for.

Revision history for this message
gidantribal (aedo999) wrote :

same problem here....

Changed in compiz:
milestone: 0.9.8.0 → 0.9.8.1
John Lea (johnlea)
summary: - Cursor position changes relative to window while dragging windows
+ Window management - Cursor position changes relative to window while
+ dragging windows
Changed in compiz:
importance: Medium → High
Revision history for this message
Sami Jaktholm (sjakthol) wrote :

This seems to be fixed in Quantal (and in Compiz trunk) as windows seem follow my mouse no matter what try (drag windows around, grab semi-maximised windows).

After some digging and testing, the fix seems to be in revision 63 of lp:compiz-snap-plugin which was later merged to lp:compiz. As the plugin in Quantal is built from lp:compiz it has the working version included.

Attached a diff of relevant changes (from rev63) which can be used to fix this bug in Precise if this bug were to be SRUed some point in the future (tested that locally and it seems to work fine).

tags: added: patch
Changed in compiz:
milestone: 0.9.8.2 → 0.9.8.4
Changed in compiz:
milestone: 0.9.8.4 → 0.9.9.0
John Lea (johnlea)
Changed in compiz:
importance: High → Critical
Revision history for this message
Stephen M. Webb (bregma) wrote :

 This was fixed under #872177 and is included in 12.10.

Changed in compiz:
status: Triaged → Fix Released
Changed in compiz (Ubuntu):
status: Triaged → Fix Released
Changed in compiz:
milestone: 0.9.9.0 → none
John Lea (johnlea)
Changed in ayatana-design:
status: Fix Committed → Fix Released
tags: added: reviewedbydesignp
removed: udp
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Actually it's not fixed at all. The fix in question never did anything and was in fact pointless dead code:
    https://code.launchpad.net/~compiz-team/compiz-snap-plugin/compiz_snap_plugin.fix_872177/+merge/78926

So it was removed from the compiz source earlier this year.

Changed in compiz:
status: Fix Released → Triaged
Changed in compiz (Ubuntu):
status: Fix Released → Triaged
Changed in compiz:
importance: Critical → Medium
Changed in compiz (Ubuntu):
importance: Critical → Medium
Changed in compiz:
milestone: none → 0.9.9.0
John Lea (johnlea)
Changed in ayatana-design:
status: Fix Released → Fix Committed
tags: added: udp
removed: reviewedbydesignp
Changed in compiz:
importance: Medium → High
Changed in compiz (Ubuntu):
importance: Medium → High
Changed in compiz:
assignee: nobody → Brandon Schaefer (brandontschaefer)
status: Triaged → In Progress
Stephen M. Webb (bregma)
Changed in compiz (Ubuntu):
assignee: nobody → Brandon Schaefer (brandontschaefer)
status: Triaged → In Progress
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :
Changed in compiz:
assignee: Brandon Schaefer (brandontschaefer) → Sam Spilsbury (smspillaz)
status: In Progress → Fix Committed
Changed in compiz-core:
status: New → Fix Committed
assignee: nobody → Sam Spilsbury (smspillaz)
Changed in compiz (Ubuntu):
assignee: Brandon Schaefer (brandontschaefer) → nobody
Changed in compiz-plugins-main:
milestone: none → 0.9.7.4
importance: Undecided → High
Changed in compiz-core:
importance: Undecided → High
Changed in compiz-plugins-main:
status: New → Fix Committed
assignee: nobody → Sam Spilsbury (smspillaz)
Changed in compiz-core:
status: Fix Committed → Invalid
Changed in compiz-plugins-main (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in compiz (Ubuntu):
status: In Progress → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Reopened. The issue with dragging between workspaces is not fixed. But the problem with the snap plugin is fixed.

Changed in compiz:
status: Fix Committed → In Progress
assignee: Sam Spilsbury (smspillaz) → Brandon Schaefer (brandontschaefer)
Changed in compiz-core:
assignee: Sam Spilsbury (smspillaz) → nobody
Changed in compiz-plugins-main:
assignee: Sam Spilsbury (smspillaz) → Brandon Schaefer (brandontschaefer)
status: Fix Committed → In Progress
Changed in compiz-core:
status: Invalid → In Progress
assignee: nobody → Brandon Schaefer (brandontschaefer)
milestone: none → 0.9.7.12
Changed in compiz:
assignee: Brandon Schaefer (brandontschaefer) → Daniel van Vugt (vanvugt)
Changed in compiz-core:
assignee: Brandon Schaefer (brandontschaefer) → nobody
Changed in compiz-plugins-main:
assignee: Brandon Schaefer (brandontschaefer) → nobody
Changed in compiz-core:
status: In Progress → Triaged
Changed in compiz-plugins-main:
status: In Progress → Triaged
Changed in compiz (Ubuntu):
status: Invalid → Triaged
Changed in compiz (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in compiz-plugins-main:
status: Triaged → Fix Committed
assignee: nobody → Sam Spilsbury (smspillaz)
Changed in compiz (Ubuntu):
milestone: none → ubuntu-13.04-alpha-1
Changed in compiz:
status: In Progress → Fix Committed
Changed in compiz (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix committed to lp:compiz-plugins-main/0.9.7 at revision 39, scheduled for release in Compiz Main Plugins 0.9.7.4

no longer affects: compiz-core
Changed in compiz-plugins-main:
assignee: Sam Spilsbury (smspillaz) → Daniel van Vugt (vanvugt)
status: Fix Committed → In Progress
status: In Progress → Fix Committed
status: Fix Committed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix committed to lp:compiz/0.9.8 at revision 3423. scheduled for release in Compiz 0.9.8.8.

Remember these are just the wall plugin fixes. The fix for the snap plugin is already in Compiz 0.9.8.0 and later.

Sorry to confuse everyone with two fixes to one bug. Normally this should never happen. It's just that the first fix was never explicitly linked to the bug at all.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sigh. Still not fixed properly in 0.9.7. Simply backporting the fix from 0.9.9 is not enough. There's still a massive gap between the mouse pointer and window when its dragged between viewports.

Changed in compiz-plugins-main:
status: Fix Committed → Triaged
assignee: Daniel van Vugt (vanvugt) → nobody
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It seems something in the move plugin has to be backported to 0.9.7 as well. Not sure what.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.6 KiB)

This bug was fixed in the package compiz - 1:0.9.9~daily12.12.05-0ubuntu1

---------------
compiz (1:0.9.9~daily12.12.05-0ubuntu1) raring; urgency=low

  [ Michael Terry ]
  * debian/control:
    - Update Vcs-Bzr
  * debian/patches/100_expo_layout.patch:
    - Fix to apply
  * Automatic snapshot from revision 3451 (bootstrap)
    - Fix crash from writing to static memory (LP: #1065814)
    - Fix maximized windows changing workspaces (LP: #1071791)
    - Respect Zoom Factor setting (LP: #1066187)
    - Respect Show Window Title setting (LP: #1009999)
    - Restore text background transparency (LP: #1042132)
    - Restore screenshot selection rectangle transparency (LP: #1047788)
    - Restore top and bottom cube transparency (LP: #1048272)
    - Fix scaleaddon window highlighting being solid (LP #1068503)
    - Make resize hint overlay disappear when changing edges (LP: #839602)
    - Preserve grid IDs during drag (LP: #1067812, LP: #1048855)
    - Save current display before doing snap preview (LP: #1068173)
    - Ignore inactive keybindings (LP: #1053280)
    - Handle <primary> in keyboard shortcuts (LP: #936840)
    - Make sure showdesktop plugin is loaded after unityshell (LP: #1067534)
    - Fix grid build failure (LP: #1067577)
    - Fix Jenkins test failures (LP: #1058577)
    - Don't allow duplicate static symbols when linking (LP: #1067964)
    - Make external templates C++0x compatible (LP: #1067598)
    - Make sure to initialize class members (LP: #1033877)
    - Don't duplicate templates in plugins (LP: #1066793, LP: #1066803,
      LP: #1066804, LP: #1066805, LP: #1066799, LP: #1066796,
      LP: #1066795, LP: #1066798, LP: #1067218, LP: #1067219)
    - Don't needlessly set gsettings keys (LP: #1064791)
    - Remove unused code (LP: #1037142, LP: #1067234)
    - Fix syntax highlighting for trunk xml files (LP: #1066823)
    - Fix documentation for building with python2 (LP: #1070211)

  [ Stephen M. Webb ]
  * Windows open below panel and launcher, grid does not work at all,
    window animations missing, and general plugin chaos if built on
    raring (cmake >= 2.8.10) (LP: #1085581)

  [ Iven Hsu ]
  * KDE Appmenu doesn't work with compiz decorators (LP: #1082265)
  * compiz 0.9.8.6 fails to build from source in KDE4-window-decorator
    with latest KDE 4.10 beta (LP: #1082152)
  * kde4-window-decorator crashes when starting up with oxygen theme
    (LP: #1050776)

  [ sampo555 ]
  * Grid: Window management - resize preview does not show when moving a
    window from the semi-maximised state to the maximised state in a
    single action (LP: #1071689)

  [ Timo Jyrinki ]
  * HTML5 video in Firefox continues to tear (LP: #1086337)

  [ MC Return ]
  * Workspacenames Plug-in: Wishlist: Default Appearance values not
    ideal (LP: #1075600)
  * Resizeinfo Plug-in: No possibility to change the color and
    transparency of the rounded background outline (LP: #1070297)
  * Resizeinfo Plug-in: Gradient color 2 and 3 settings are ignored and
    no background gradient is rendered (LP: #1070233)
  * Expo animations "Fade + Zoom" & "Vortex" result in a black screen
    (LP: #875311)
  * Workspacenames Plug-in: Wishlist: No default values...

Read more...

Changed in compiz (Ubuntu):
status: Fix Committed → Fix Released
Stephen M. Webb (bregma)
Changed in compiz:
status: Fix Committed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It's not "Fix released" for Compiz 0.9.9.0 until 0.9.9.0 itself is released :)

Changed in compiz:
status: Fix Released → Fix Committed
Changed in compiz:
status: Fix Committed → Fix Released
Revision history for this message
Esokrates (esokrarkose) wrote :
description: updated
Changed in compiz-plugins-main (Ubuntu):
status: Triaged → Invalid
Changed in compiz-plugins-main (Ubuntu Quantal):
status: New → Invalid
Changed in compiz-plugins-main:
status: Triaged → Invalid
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello TheAceOfFire, or anyone else affected,

Accepted compiz into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/compiz/1:0.9.8.6+bzr3433-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in compiz (Ubuntu Quantal):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Sami Jaktholm (sjakthol) wrote :

No matter how hard I move the window around I can't get the cursor to detach from the window with compiz in Quantal proposed.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Hans Deragon (deragon) wrote :

Any chances to have this fix backported to Precise Pangolin 12.04? If so, when can we expect it?

John Lea (johnlea)
tags: added: rss-ux-july
tags: removed: rss-ux-july
no longer affects: compiz-plugins-main (Ubuntu)
no longer affects: compiz-plugins-main (Ubuntu Quantal)
Revision history for this message
Miguel Meléndez (miguelmmg) wrote :

This bug affects Precise Pangolin 12.04.4. It is possible to backport the fix to Precise? Quantal becomes unsupported in Abril 2014 but Precise has support until 2017.

Changed in compiz (Ubuntu Quantal):
status: Fix Committed → Won't Fix
Revision history for this message
Stephen M. Webb (bregma) wrote :

marking as closed (0.9.8 series is obsolete)

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

Other bug subscribers

Related blueprints

Remote bug watches

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