Bug 435108

Summary: "Move mouse to center" action should center within the current screen, not the combined area of all screens
Product: [Plasma] kwin Reporter: postix <postix>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde, kde, nate, plasma-bugs-null, postix
Priority: NOR Keywords: usability
Version First Reported In: 5.21.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0.5
Sentry Crash Report:

Description postix 2021-03-29 13:01:09 UTC
Currently there are only shortcuts to move the mouse pointer to the focus and to center it. The latter however is evil when one uses two screens: The algorithm seem to calculate the center of when both screens are combined to one single polygon area. 

It would make more sense IMHO if it centered within the active screen _OR_ if there an additional shortcut for doing so.
Comment 1 David Edmundson 2024-04-25 14:01:34 UTC
Fixed in 6.0, potentially earlier
Comment 2 David Redondo 2024-04-25 14:05:13 UTC
tested, not fixed
Comment 3 Bug Janitor Service 2024-04-26 10:41:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5660
Comment 4 David Redondo 2024-04-26 11:00:51 UTC
Git commit 2e92fca0177ff812a78b5f85b1c0509a54c80e95 by David Redondo.
Committed on 26/04/2024 at 10:41.
Pushed by davidre into branch 'master'.

plugins/zoom: Center cursor on active screen on shortcut

M  +1    -1    src/plugins/zoom/zoom.cpp

https://invent.kde.org/plasma/kwin/-/commit/2e92fca0177ff812a78b5f85b1c0509a54c80e95
Comment 5 David Redondo 2024-04-26 11:12:46 UTC
Git commit 2bbf56a59b90e22d5ab3cebaba8100c31ae7f4ee by David Redondo.
Committed on 26/04/2024 at 11:01.
Pushed by davidre into branch 'Plasma/6.0'.

plugins/zoom: Center cursor on active screen on shortcut


(cherry picked from commit 2e92fca0177ff812a78b5f85b1c0509a54c80e95)

M  +1    -1    src/plugins/zoom/zoom.cpp

https://invent.kde.org/plasma/kwin/-/commit/2bbf56a59b90e22d5ab3cebaba8100c31ae7f4ee