fix for keyboard input not working on linux when an input method is set (like ibus).

This commit is contained in:
kappa1 2011-09-20 19:46:33 +00:00
parent 3b1cea0e34
commit 63e85b2acf
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_opengl_LinuxKeyboard_keycodeToKeySym(JNIE
JNIEXPORT jlong JNICALL Java_org_lwjgl_opengl_LinuxKeyboard_openIM(JNIEnv *env, jclass unused, jlong display_ptr) {
Display *disp = (Display *)(intptr_t)display_ptr;
XSetLocaleModifiers ("@im=none");
XIM xim = XOpenIM(disp, NULL, NULL, NULL);
return (intptr_t)xim;
}