Bug 522070 - MoveMouseToFocus/Center Shortcuts No Longer Work (via dbus or shortcut)
Summary: MoveMouseToFocus/Center Shortcuts No Longer Work (via dbus or shortcut)
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.7.0
Platform: CachyOS Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-23 16:12 UTC by Richard Brunner
Modified: 2026-06-30 09:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Brunner 2026-06-23 16:12:01 UTC
DESCRIPTION
The MoveMouseToFocus/Center shortcuts no longer work (neither via keybind nor dbus call). This is detrimental both for accessibility reasons and because some projects (like the Krohnkite dynamic window tiling script) need these dbus calls in order to be able to implement a "mouse follows focus" option (which many other window managers have). This is the only way to do this as the cursor position variable is not writable (via the scripting interface; presumably for security reasons).

STEPS TO REPRODUCE
1. Attempt to use the MoveMouseToFocus/Center shortcuts via built-in keybind or dbus call via `qdbus6 org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut MoveMouseToFocus`

OBSERVED RESULT
The mouse pointer doesn't move to focused window or screen center.

EXPECTED RESULT
The mouse pointer should move to the center of the focused window or screen.

SOFTWARE/OS VERSIONS
Operating System:
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Comment 1 Richard Brunner 2026-06-23 19:58:18 UTC
Updated to 6.7.1 and issue persists.
Comment 2 David Redondo 2026-06-24 08:01:44 UTC
Works here. Is any error/warning logged somewhere?
Comment 3 Richard Brunner 2026-06-24 15:44:46 UTC
(In reply to David Redondo from comment #2)
> Works here. Is any error/warning logged somewhere?

None that I can tell. Nothing in dmesg or debug console.
Comment 4 Nate Graham 2026-06-26 20:26:09 UTC
Works for me too. Does the issue happen in a new clean user account on the same system?
Comment 5 Richard Brunner 2026-06-30 02:49:11 UTC
(In reply to Nate Graham from comment #4)
> Works for me too. Does the issue happen in a new clean user account on the
> same system?

Sorry for the delay, got caught up with some personal matters. It does indeed work when I create a new test user account on the system. It was working before the 6.7 upgrade so I am not sure what's up.
Comment 6 Richard Brunner 2026-06-30 03:00:14 UTC
I managed to find the setting that causes the issue. If the Zoom accessibility setting is not explicitly set to "Full Screen" those shortcuts do not work at all. This doesn't seem like something that should be intended...
Comment 7 Bug Janitor Service 2026-06-30 07:22:07 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9495
Comment 8 Vlad Zahorodnii 2026-06-30 08:53:42 UTC
Git commit a04d6eb451814e9d7d2694d6e602243581e51e36 by Vlad Zahorodnii.
Committed on 30/06/2026 at 08:17.
Pushed by vladz into branch 'master'.

Move "mouse to focus" and "mouse to center" shortcuts to kwin core

The zoom effect is not the right place for them.

M  +0    -29   src/plugins/zoom/zoom.cpp
M  +0    -2    src/plugins/zoom/zoom.h
M  +15   -0    src/useractions.cpp
M  +2    -0    src/workspace.h

https://invent.kde.org/plasma/kwin/-/commit/a04d6eb451814e9d7d2694d6e602243581e51e36
Comment 9 Vlad Zahorodnii 2026-06-30 09:40:48 UTC
Git commit f97d662bc57d7978cfba5537161a8b6a24907432 by Vlad Zahorodnii.
Committed on 30/06/2026 at 08:56.
Pushed by vladz into branch 'Plasma/6.7'.

Move "mouse to focus" and "mouse to center" shortcuts to kwin core

The zoom effect is not the right place for them.
(cherry picked from commit a04d6eb451814e9d7d2694d6e602243581e51e36)

M  +0    -29   src/plugins/zoom/zoom.cpp
M  +0    -2    src/plugins/zoom/zoom.h
M  +15   -0    src/useractions.cpp
M  +2    -0    src/workspace.h

https://invent.kde.org/plasma/kwin/-/commit/f97d662bc57d7978cfba5537161a8b6a24907432