Bug 276503

Summary: The mouse cursor is offset when using the zoom effect and set mouse tracking to other than Proportional
Product: [Plasma] kwin Reporter: jens <jp7677>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.0
Sentry Crash Report:

Description jens 2011-06-26 05:34:35 UTC
Version:           SVN (using KDE 4.6.4) 
OS:                Linux

Hello there,

When using the zoom effect and mouse tracking is set to eg. Push, then the zoom effect works perfectly, but the mouse is a little bit offset, thus a click happens somewhere on the desktop, but not on the position where your mouse cursor is pointing to.

Reproducible: Didn't try

Steps to Reproduce:
- Enable the Zoom effect
- Set Mouse Tracking to something different than Proportional (Centered, Push, Disabled)
- Try to do eg. use firefox with your mouse 

Actual Results:  
Mouse actions (move,click) do happen somewhere on your desktop, but where your mouse points to. The offset increases when you point away from the center of the screen/move more to the edges of your screen.

Expected Results:  
Mouse actions should happen where your cursor is positioned.

My screen resolution is 1920x1200, I'm using the nvidia closed source driver.
Comment 1 jens 2011-06-26 05:36:54 UTC
One more note: I'm using of course the kwin version that comes with KDE 4.6.4 and note a version from svn/git trunk as stated above.
Comment 2 Thomas Lübking 2011-06-26 07:01:15 UTC
Doesn't happen here at all.
Neither on GL, nor on XRender. With no scaling method and regardless whether the cursor is set to "keep" or "scale".

What does *not* work is the cursor shape (but that known, filed and maybe a general limitation)

-> Does it only affect firefox?
Comment 3 jens 2011-06-26 09:47:15 UTC
Hello Thomas,

Thank you for looking into this. No, its the whole desktop. Eg. the context menu on my desktop appears on a different position when I'm zoomed in, have moved to e.g. the left side of my screen and do a right mouse click. It makes no difference if the Mouse Pointer is set to keep of scale. Please note that the offset is very small when you stay in the center of the screen (I assume that's why everything is fine when Mouse Tracking is set to Proportional, at least on my machine).

PS: I just did a check on my laptop (though nearly the configuration, OpenSuse 11.4 with KDE 4.6.4. from release repositories with the nvidia closed driver) and I see the same behavior.
Comment 4 Thomas Lübking 2011-06-26 22:10:15 UTC
Do you use 
- a multi-display setup (multiscreen, xinerama, xrandr, stuff) or
- a virtual screensize (ie. the screen is bigger than your monitor res. and slides with the cursor - without any effects)

Does it still happen if you disable all other effect plugins?
Comment 5 jens 2011-06-27 19:43:08 UTC
Unfortunately not. Regarding the base system my desktop and laptop are really just an ordinary out-of-the box openSuse 11.4 installation with KDE 4.6.4 from the opensuse release 4.6 repositories and the nvidia closed source driver from the nvidia repository. I don't have an xorg.conf.

I tried to disable all other effects, but that did not help.
Comment 6 Thomas Lübking 2011-06-30 19:25:14 UTC
Some offlist investigation showed that the cursor image loading failed and so the real cursor is still shown.
Patch available, dummy test implementation has been confirmed to work by the reporter.

https://git.reviewboard.kde.org/r/101811/
Comment 7 Thomas Lübking 2011-07-02 18:36:24 UTC
blast, forgot to hook the bug in the commit message.

commitet to 4.7
http://commits.kde.org/kde-workspace/8cd735795ed67fb6d5a7a135997c9bab404a044b
and master
http://commits.kde.org/kde-workspace/98ad4e4e465c529827513521a46ce6256d2e90be