XWarpPointer 在 wmware 播放器中的 ubuntu 12.04 上不起作用 [英] XWarpPointer does not work on ubuntu 12.04 in wmware player

查看:39
本文介绍了XWarpPointer 在 wmware 播放器中的 ubuntu 12.04 上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试在 Qt 应用程序中使用 Xlib 移动鼠标指针:

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);

但这在 wmware 播放器中的 ubuntu 中不起作用(也许 vmware 工具使用 X11),是否有禁用 vmware 鼠标集成或使用任何其他代码的想法?谢谢.

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.

推荐答案

我终于找到了解决方案,我需要做的就是在我的 Ubuntu 虚拟机目录中编辑 .vmx 文件并添加以下行:

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"

这会禁用鼠标集成.

这篇关于XWarpPointer 在 wmware 播放器中的 ubuntu 12.04 上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆