瀏覽代碼

Update mouse cursor position in x0vncserver

This is necessary to make sure the server side rendered cursor works
properly.
tags/v1.8.90
Pierre Ossman 6 年之前
父節點
當前提交
00dec78eb1
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      unix/x0vncserver/x0vncserver.cxx

+ 8
- 0
unix/x0vncserver/x0vncserver.cxx 查看文件

@@ -276,6 +276,14 @@ public:
inline void poll() {
if (pb and not haveDamage)
pb->poll(server);
if (running) {
Window root, child;
int x, y, wx, wy;
unsigned int mask;
XQueryPointer(dpy, DefaultRootWindow(dpy), &root, &child,
&x, &y, &wx, &wy, &mask);
server->setCursorPos(rfb::Point(x, y));
}
}

// -=- SDesktop interface

Loading…
取消
儲存