Commit da870385 authored by cutealien's avatar cutealien

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
parent 969b6b78
Changes in 1.6 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: 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. - bugfix: CMountPointReader::openFile no longer returns true for empty files. Corresponding test added.
......
...@@ -579,7 +579,8 @@ bool CIrrDeviceLinux::createWindow() ...@@ -579,7 +579,8 @@ bool CIrrDeviceLinux::createWindow()
XMapRaised(display, window); XMapRaised(display, window);
} }
WindowMinimized=false; WindowMinimized=false;
XkbSetDetectableAutoRepeat(display, True, &AutorepeatSupport); // Currently broken in X, see Bug ID 2795321
// XkbSetDetectableAutoRepeat(display, True, &AutorepeatSupport);
#ifdef _IRR_COMPILE_WITH_OPENGL_ #ifdef _IRR_COMPILE_WITH_OPENGL_
...@@ -856,7 +857,7 @@ bool CIrrDeviceLinux::run() ...@@ -856,7 +857,7 @@ bool CIrrDeviceLinux::run()
break; break;
case KeyRelease: case KeyRelease:
if (0 == AutorepeatSupport) if (0 == AutorepeatSupport && (XPending( display ) > 0) )
{ {
// check for Autorepeat manually // check for Autorepeat manually
// We'll do the same as Windows does: Only send KeyPressed // We'll do the same as Windows does: Only send KeyPressed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment