标签:
Linux GUI程序设置鼠标位置
?
示例代码:
Display *dpy;
Window root_window;
?
dpy = XOpenDisplay(0);
root_window = XRootWindow(dpy, 0);
XSelectInput(dpy, root_window, KeyReleaseMask);
XWarpPointer(dpy, None, root_window, 0, 0, 0, 0, 100, 100);
XFlush(dpy);
标签:
原文地址:http://www.cnblogs.com/abcz/p/5664364.html