From 4f90019dcba2ea85271d29c76aa702d73185cc2f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 5 Apr 2021 17:09:08 +0200 Subject: [PATCH] Fix segfault if non-i18n fallback input is used on Linux --- source/Irrlicht/CIrrDeviceLinux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())