Tested with df_input example. diff --git a/systems/x11/x11input.c b/systems/x11/x11input.c index 39ab151..e8213bb 100644 --- a/systems/x11/x11input.c +++ b/systems/x11/x11input.c @@ -570,7 +570,7 @@ x11EventThread( DirectThread *thread, void *driver_data ) case KeyRelease: { motion_realize( data );
- dfbEvent.type = (xEvent.type == KeyPress) ? DIET_KEYPRESS : DIET_KEYRELEASE; + dfbEvent.type = (nextKeyIsRepeat == true || xEvent.type == KeyPress) ? DIET_KEYPRESS : DIET_KEYRELEASE; dfbEvent.flags = DIEF_KEYCODE | DIEF_TIMESTAMP; dfbEvent.key_code = xEvent.xkey.keycode; -- Jefferson Ferreira
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev