XWarpPointer does not work on ubuntu 12.04 in wmware player

五迷三道 提交于 2021-02-08 11:30:23

问题


Hello i'm trying to move the mouse pointer by using Xlib in my Qt application:

cout <<"move mouse to "<<x<<","<<y<<endl;
XWarpPointer(defaultdisplay, None, desktoproot, 0, 0, 0, 0, x, y);
XFlush(defaultdisplay);
//QCursor::setPos(x,y);

but this not work in an ubuntu that is inside a wmware player (maybe vmware tools uses X11), any idea for disabling the vmware mouse integration or using any other code? thanks.


回答1:


i finally found the solucion, all i needed to do is edit the .vmx file in my Ubuntu virtual machine directory and add the line:

vmmouse.present = "FALSE"

thats disables the mouse integration.



来源:https://stackoverflow.com/questions/14553155/xwarppointer-does-not-work-on-ubuntu-12-04-in-wmware-player

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!