DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2232
Version: 1.3-current
Link: http://www.fltk.org/str.php?L2232
Version: 1.3-current
Index: src/Fl_x.cxx
===================================================================
--- src/Fl_x.cxx (revision 6965)
+++ src/Fl_x.cxx (working copy)
@@ -780,15 +780,6 @@
static Fl_Window* resize_bug_fix;
-extern "C" {
- static Bool fake_keyup_test(Display*, XEvent* event, char* previous) {
- return
- event->type == KeyPress &&
- event->xkey.keycode == ((XKeyEvent*)previous)->keycode &&
- event->xkey.time == ((XKeyEvent*)previous)->time;
- }
-}
-
////////////////////////////////////////////////////////////////
static char unknown[] = "<unknown>";
@@ -1169,15 +1160,6 @@
Fl::e_text = buffer;
Fl::e_length = len;
} else {
- // Stupid X sends fake key-up events when a repeating key is held
- // down, probably due to some back compatibility problem. Fortunately
- // we can detect this because the repeating KeyPress event is in
- // the queue, get it and execute it instead:
- XEvent temp;
- if (XCheckIfEvent(fl_display,&temp,fake_keyup_test,(char*)(&xevent))){
- xevent = temp;
- goto KEYPRESS;
- }
event = FL_KEYUP;
fl_key_vector[keycode/8] &= ~(1 << (keycode%8));
// keyup events just get the unshifted keysym:
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs