How to set the mouse position under X11 (linux desktop)?

前端 未结 5 1518
情书的邮戳
情书的邮戳 2020-12-18 09:46

I\'m wondering how to set the mouse cursor position under X11? Is it possible at all and if, where do I have to look for appropriate functions? X window system, KDE/Gnome/..

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-18 10:14

    Sounds like you're using X, so what you probably want is XWarpPointer. To give an absolute position on the whole screen, use the Root Window as dest window.

    (You can get a quick and dirty list of X functions using ls /usr/share/man/man3/ | grep '^X')

提交回复
热议问题