aboutsummaryrefslogtreecommitdiffstats
path: root/x11/kb2mb2
diff options
context:
space:
mode:
authorsada <sada@FreeBSD.org>2001-08-22 23:29:53 +0800
committersada <sada@FreeBSD.org>2001-08-22 23:29:53 +0800
commitf47f9c741e7f9593d3b45cca32d500732f0f64ea (patch)
treec354be22cecb154e4c457d9d71255c996272db16 /x11/kb2mb2
parentd613a50efe916de473aee8b2c123162d9ce3dc6a (diff)
downloadfreebsd-ports-graphics-f47f9c741e7f9593d3b45cca32d500732f0f64ea.tar.gz
freebsd-ports-graphics-f47f9c741e7f9593d3b45cca32d500732f0f64ea.tar.zst
freebsd-ports-graphics-f47f9c741e7f9593d3b45cca32d500732f0f64ea.zip
Cope with Xvnc.
Submitted by: Christophe GIAUME <christophe@giaume.com>
Diffstat (limited to 'x11/kb2mb2')
-rw-r--r--x11/kb2mb2/files/patch-ab24
1 files changed, 24 insertions, 0 deletions
diff --git a/x11/kb2mb2/files/patch-ab b/x11/kb2mb2/files/patch-ab
new file mode 100644
index 00000000000..20283f89c1b
--- /dev/null
+++ b/x11/kb2mb2/files/patch-ab
@@ -0,0 +1,24 @@
+--- kb2mb2.c.orig Thu Aug 23 00:07:17 2001
++++ kb2mb2.c Thu Aug 23 00:17:02 2001
+@@ -165,7 +165,9 @@
+ if (verbose) {
+ fprintf(stderr, "Pressed Key %x\n", input_keysym);
+ }
+- XTestFakeButtonEvent(d, Button2, True, CurrentTime);
++ if (input_keycode == keycode) {
++ XTestFakeButtonEvent(d, Button2, True, CurrentTime);
++ }
+ break;
+ case KeyRelease:
+ input_keycode = ev.xkey.keycode;
+@@ -174,7 +176,9 @@
+ if (verbose) {
+ fprintf(stderr, "Released Key %x\n", input_keysym);
+ }
+- XTestFakeButtonEvent(d, Button2, False, CurrentTime);
++ if (input_keycode == keycode) {
++ XTestFakeButtonEvent(d, Button2, False, CurrentTime);
++ }
+ break;
+ }
+ XFlush(d);