Bug 333341 - Corners send cursor to opposite end of screen
Summary: Corners send cursor to opposite end of screen
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://git.reviewboard.kde.org/r/117...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-12 00:24 UTC by Jamie Macdonald
Modified: 2014-06-04 14:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.11.9
thomas.luebking: ReviewRequest+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jamie Macdonald 2014-04-12 00:24:01 UTC
Version 4.12.4

When "Switch Desktop on Edge" is set to "Always Enabled", in "Workspace Behaviour"->"Virtual Desktops"->"Screen Edges", and the hot corners are not in use, moving cursor to a corner will trigger the switch desktop and cursor will pop out of opposite corner; 

e.g. if you move cursor to top right corner, it switches desktop and comes out bottom left corner.

Expected behaviour: cursor comes out of top left if gone into top right, and bottom left if gone into bottom right & vice versa to be continuous with what happens otherwise.

Reproducible: Always
Comment 1 Martin Flöser 2014-04-12 07:15:29 UTC
This most likely depends on your desktop layout.
Comment 2 Thomas Lübking 2014-04-12 15:40:47 UTC
Jamie, can you please provide the output of

kreadconfig --file kwinrc --group Desktops --key Number
kreadconfig --file kwinrc --group Desktops --key Rows
kreadconfig --file kwinrc --group Windows --key ElectricBorderDelay
kreadconfig --file kwinrc --group Windows --key ElectricBorderPushbackPixels
kreadconfig --file kwinrc --group Windows --key ElectricBorderCooldown

Thanks.
Comment 3 Jamie Macdonald 2014-04-12 16:52:31 UTC
(In reply to comment #2)
> kreadconfig --file kwinrc --group Desktops --key Number
3
> kreadconfig --file kwinrc --group Desktops --key Rows
1
> kreadconfig --file kwinrc --group Windows --key ElectricBorderDelay
0
> kreadconfig --file kwinrc --group Windows --key ElectricBorderPushbackPixels

> kreadconfig --file kwinrc --group Windows --key ElectricBorderCooldown
300
Comment 4 Jamie Macdonald 2014-04-12 16:56:32 UTC
(In reply to comment #1)
> This most likely depends on your desktop layout.

I think maybe I understand, if the layout were more than 1 row, the corners would move along the diagonal?
Comment 5 Thomas Lübking 2014-04-12 19:47:51 UTC
is the layout, yes.
Comment 6 Thomas Lübking 2014-04-24 11:20:59 UTC
Git commit eea4bb81105f2c289831cf1f682c3927a24fd831 by Thomas Lübking.
Committed on 12/04/2014 at 19:38.
Pushed by luebking into branch 'KDE/4.11'.

warp cursor per virtual desktop wrap direction

if there's no desktop toLeft/Right above/below it's wrong
to warp the cursor, branch opens on corner edges
FIXED-IN: 4.11.9
REVIEW: 117520

M  +15   -9    kwin/screenedge.cpp

http://commits.kde.org/kde-workspace/eea4bb81105f2c289831cf1f682c3927a24fd831
Comment 7 Martin Flöser 2014-06-04 14:35:51 UTC
Git commit 35bfec15111b1cd9ad98db63e405a928bfd2084d by Martin Gräßlin, on behalf of Thomas Lübking.
Committed on 12/04/2014 at 19:38.
Pushed by graesslin into branch 'master'.

warp cursor per virtual desktop wrap direction

if there's no desktop toLeft/Right above/below it's wrong
to warp the cursor, branch opens on corner edges

Forward port of eea4bb81105f2c289831cf1f682c3927a24fd831 from kde-workspace

M  +15   -9    screenedge.cpp

http://commits.kde.org/kwin/35bfec15111b1cd9ad98db63e405a928bfd2084d