File: multiscreen-cursor-stick.patch

package info (click to toggle)
x2vnc 1.7.2%2Bgit20100909.01ced3d-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 768 kB
  • sloc: ansic: 3,358; exp: 180; sh: 152; makefile: 29
file content (23 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (2)
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;
 }