This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How do you move the mouse in a KWin script (or with qdbus)?

Tags: None
(comma "," separated)
gammazoid
Registered Member
Posts
2
Karma
0
So, I'm working on script, https://github.com/joedefen/KWin-move-win-directionally-script, that moves windows to new screens given a direction (i.e., up, down, left, right). (I know it is not terribly useful to anybody but me, so just humor me on the mission.)

After the moving the active window to a new screen, the mouse is get left behind, and I wish to move to move the mouse within. In the documentation, https://develop.kde.org/docs/plasma/kwin/api/, there are is the MouseCommand enum with values such as MouseMove, but, nevertheless, I don't understand how to move the mouse.

If there is no direct API for moving the mouse cursor, the script could call a qdbus operation, but I have not found an applicable one of those either.

Any advice?


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell