mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
57166f93bf
Submitted by: Christophe GIAUME <christophe@giaume.com>
25 lines
729 B
Plaintext
25 lines
729 B
Plaintext
--- 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);
|