diff options
-rw-r--r-- | unix/x0vncserver/XDesktop.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/x0vncserver/XDesktop.cxx b/unix/x0vncserver/XDesktop.cxx index 110b79eb..d8360abd 100644 --- a/unix/x0vncserver/XDesktop.cxx +++ b/unix/x0vncserver/XDesktop.cxx @@ -204,6 +204,8 @@ void XDesktop::poll() { unsigned int mask; XQueryPointer(dpy, DefaultRootWindow(dpy), &root, &child, &x, &y, &wx, &wy, &mask); + x -= geometry->offsetLeft(); + y -= geometry->offsetTop(); server->setCursorPos(rfb::Point(x, y)); } } |