File: multiscreen-cursor-stick.patch

package info (click to toggle)
x2vnc 1.7.2-6
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 684 kB
  • ctags: 775
  • sloc: ansic: 3,301; exp: 180; sh: 152; makefile: 77
file content (24 lines) | stat: -rw-r--r-- 762 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
24
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	2008-03-25 10:45:34 +0000
+++ b/x.c	2011-03-03 23:34:29 +0000
@@ -848,9 +848,9 @@
 {
   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;
 }