diff --git a/source/Irrlicht/CIrrDeviceLinux.cpp b/source/Irrlicht/CIrrDeviceLinux.cpp index 192dd39..f482ec6 100644 --- a/source/Irrlicht/CIrrDeviceLinux.cpp +++ b/source/Irrlicht/CIrrDeviceLinux.cpp @@ -1159,7 +1159,7 @@ bool CIrrDeviceLinux::run() } // end while // Update IME information - if (GUIEnvironment) + if (XInputContext && GUIEnvironment) { gui::IGUIElement *elem = GUIEnvironment->getFocus(); if (elem && elem->acceptsIME())