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-currentIndex: src/x11/run.cxx
===
--- src/x11/run.cxx (revision 6965)
+++ src/x11/run.cxx (working copy)
@@ -1236,15 +1236,6 @@
int fl_actual_keysym;
-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;
- }
-}
-
// this little function makes sure that the stylus related event data
// is useful, even if no tablet was discovered, or the mouse was used to
// generate a PUSH, RELEASE, MOVE or DRAG event
@@ -1667,15 +1658,6 @@
goto GET_KEYSYM;}
case KeyRelease: {
-// Stupid X sends fake key-up events when a repeating key is held
-// down, probably due to some back compatability problem. Fortunatley
-// we can detect this because the repeating KeyPress event is in
-// the queue, get it and execute it instead:
-XEvent temp;
-if (XCheckIfEvent(xdisplay,temp,fake_keyup_test,(char*)(xevent))){
- xevent = temp;
- goto KEYPRESS;
-}
set_event_xy(false);
unsigned keycode = xevent.xkey.keycode;
fl_key_vector[keycode/8] = ~(1 (keycode%8));
___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs