1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Fix a sticking cursor in a multi-screen configuration
When x2vnc is compiled with Xinerama support and runs with a multiscreen setup,
the cursor can become stuck on the border between the local and remote screens,
not moving further than the border, as it should do.
Author: Will Shackleton <w.shackleton@gmail.com>
Bug-Debian: http://bugs.debian.org/616396
Bug-Ubuntu: https://launchpad.net/bugs/726783
Forwarded: yes
--- a/x.c
+++ b/x.c
@@ -851,9 +851,9 @@ int coord_dist_from_edge(struct coord a)
{
int n,ret=a.x;
if(a.y < ret) ret=a.y;
- n=displayHeight - a.y;
+ n=y_offset + displayHeight - a.y;
if(n < ret) ret=n;
- n=displayWidth - a.x;
+ n=x_offset + displayWidth - a.x;
if(n < ret) ret=n;
return ret;
}
|