aboutsummaryrefslogtreecommitdiff
path: root/x11/kb2mb2
diff options
context:
space:
mode:
authorSADA Kenji <sada@FreeBSD.org>2001-08-22 15:29:53 +0000
committerSADA Kenji <sada@FreeBSD.org>2001-08-22 15:29:53 +0000
commit57166f93bf3aaf9ddc2d6a342f5e9845db931f3a (patch)
tree996e42cdddaa03e72b3f22a4b5d5232298cf6873 /x11/kb2mb2
parent3953bc07d208706084aca112c155b6bd7adcf7f5 (diff)
downloadports-57166f93bf3aaf9ddc2d6a342f5e9845db931f3a.tar.gz
ports-57166f93bf3aaf9ddc2d6a342f5e9845db931f3a.zip
Notes
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 000000000000..20283f89c1be
--- /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);