Fix segfault if non-i18n fallback input is used on Linux

This commit is contained in:
sfan5 2021-04-05 17:09:08 +02:00
parent c77797bbed
commit 4f90019dcb
1 changed files with 1 additions and 1 deletions

View File

@ -1159,7 +1159,7 @@ bool CIrrDeviceLinux::run()
} // end while } // end while
// Update IME information // Update IME information
if (GUIEnvironment) if (XInputContext && GUIEnvironment)
{ {
gui::IGUIElement *elem = GUIEnvironment->getFocus(); gui::IGUIElement *elem = GUIEnvironment->getFocus();
if (elem && elem->acceptsIME()) if (elem && elem->acceptsIME())