bugfix for 2795321 found by egrath: Don't rely anymore on broken XkbSetDetectableAutoRepeat.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2428 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2009-06-20 09:22:51 +00:00
parent 969b6b786d
commit da870385bd
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,7 @@
Changes in 1.6
- bugfix for 2795321 found by egrath: Don't rely anymore on broken XkbSetDetectableAutoRepeat.
- bugfix: Use make_lower throughout for spritebank filenames (found and patched by Ion Dune)
- bugfix: CMountPointReader::openFile no longer returns true for empty files. Corresponding test added.

View File

@ -579,7 +579,8 @@ bool CIrrDeviceLinux::createWindow()
XMapRaised(display, window);
}
WindowMinimized=false;
XkbSetDetectableAutoRepeat(display, True, &AutorepeatSupport);
// Currently broken in X, see Bug ID 2795321
// XkbSetDetectableAutoRepeat(display, True, &AutorepeatSupport);
#ifdef _IRR_COMPILE_WITH_OPENGL_
@ -856,7 +857,7 @@ bool CIrrDeviceLinux::run()
break;
case KeyRelease:
if (0 == AutorepeatSupport)
if (0 == AutorepeatSupport && (XPending( display ) > 0) )
{
// check for Autorepeat manually
// We'll do the same as Windows does: Only send KeyPressed