Browse Source

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 years ago
parent
commit
00dec78eb1
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      unix/x0vncserver/x0vncserver.cxx

+ 8
- 0
unix/x0vncserver/x0vncserver.cxx View File

@@ -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…
Cancel
Save