This is necessary to make sure the server side rendered cursor works properly.tags/v1.8.90
inline void poll() { | inline void poll() { | ||||
if (pb and not haveDamage) | if (pb and not haveDamage) | ||||
pb->poll(server); | 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 | // -=- SDesktop interface |