forked from Mirrorlandia_minetest/irrlicht
Fix segfault if non-i18n fallback input is used on Linux
This commit is contained in:
parent
c77797bbed
commit
4f90019dcb
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user