diff --git a/source/Irrlicht/CIrrDeviceLinux.cpp b/source/Irrlicht/CIrrDeviceLinux.cpp index d9e23f09..7f43c649 100644 --- a/source/Irrlicht/CIrrDeviceLinux.cpp +++ b/source/Irrlicht/CIrrDeviceLinux.cpp @@ -717,7 +717,7 @@ bool CIrrDeviceLinux::createInputContext() XGetIMValues(XInputMethod, XNQueryInputStyle, &im_supported_styles, (char*)NULL); XIMStyle bestStyle = 0; // TODO: If we want to support languages like chinese or japanese as well we probably have to work with callbacks here. - XIMStyle supportedStyle = XIMPreeditNone | XIMStatusNone; + XIMStyle supportedStyle = XIMPreeditNothing | XIMStatusNothing; for(int i=0; i < im_supported_styles->count_styles; ++i) { XIMStyle style = im_supported_styles->supported_styles[i]; @@ -820,6 +820,8 @@ bool CIrrDeviceLinux::run() { XEvent event; XNextEvent(XDisplay, &event); + if (XFilterEvent(&event, XWindow)) + continue; switch (event.type) {