Bug 493217

Summary: KDE Plasma 'Move Mouse to Focus' Meta+F5 doesn't work
Product: [Plasma] kwin Reporter: reports_go_brrr <goodaqua>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: david.vuckovic7, nate
Priority: NOR    
Version: 6.1.5   
Target Milestone: ---   
Platform: Other   
OS: Other   
See Also: https://bugs.kde.org/show_bug.cgi?id=432536
Latest Commit: Version Fixed In: 6.2.0
Sentry Crash Report:
Attachments: Showcase

Description reports_go_brrr 2024-09-16 17:22:53 UTC
Created attachment 173737 [details]
Showcase

SUMMARY
If Title haven't explained what I mean, then check out the video I attached.
Works under X11 and Wayland.

STEPS TO REPRODUCE
1. Click on the window
2. Press Meta+F5

OBSERVED RESULT
Mouse moves to upper-left coner of the screen.

EXPECTED RESULT
Make it move to the center of focused window.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.9-arch1-2 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Vanilla KDE Plasma, vanilla EndeavourOS.
Keys capturing done by ShowMeTheKey.
Comment 1 Nate Graham 2024-09-16 17:48:18 UTC
Can reproduce.
Comment 2 Bug Janitor Service 2024-09-16 17:57:13 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6390
Comment 3 Zamundaaa 2024-09-16 19:09:38 UTC
Git commit c3ed817ef4a3cd0ad970d01a432f83869e51cbf9 by Xaver Hugl.
Committed on 16/09/2024 at 17:56.
Pushed by zamundaaa into branch 'master'.

plugins/zoom: make "Move Mouse to Focus" shortcut do at least something reasonable on Wayland

Focus tracking with accessibility APIs is disabled on Wayland because it causes hangs, but we
can at least warp the pointer to the active window instead of (0, 0)

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

https://invent.kde.org/plasma/kwin/-/commit/c3ed817ef4a3cd0ad970d01a432f83869e51cbf9
Comment 4 Zamundaaa 2024-09-16 19:50:51 UTC
Git commit 7d6d600935119ed20fb52d070782ce96e6637e6e by Xaver Hugl.
Committed on 16/09/2024 at 19:09.
Pushed by zamundaaa into branch 'Plasma/6.2'.

plugins/zoom: make "Move Mouse to Focus" shortcut do at least something reasonable on Wayland

Focus tracking with accessibility APIs is disabled on Wayland because it causes hangs, but we
can at least warp the pointer to the active window instead of (0, 0)


(cherry picked from commit c3ed817ef4a3cd0ad970d01a432f83869e51cbf9)

Co-authored-by: Xaver Hugl <xaver.hugl@gmail.com>

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

https://invent.kde.org/plasma/kwin/-/commit/7d6d600935119ed20fb52d070782ce96e6637e6e
Comment 5 Yevhen Popok 2024-09-21 06:06:57 UTC
*** Bug 432536 has been marked as a duplicate of this bug. ***
Comment 6 reports_go_brrr 2024-09-21 15:59:52 UTC
Would be there any fix of Meta+F5 for X11?