diff --git a/source/Irrlicht/CIrrDeviceLinux.cpp b/source/Irrlicht/CIrrDeviceLinux.cpp index ec3a5259..f2970891 100644 --- a/source/Irrlicht/CIrrDeviceLinux.cpp +++ b/source/Irrlicht/CIrrDeviceLinux.cpp @@ -148,6 +148,9 @@ CIrrDeviceLinux::CIrrDeviceLinux(const SIrrlichtCreationParameters& param) if (!createWindow()) return; setResizable(param.WindowResizable); +#ifdef _IRR_COMPILE_WITH_X11_ + createInputContext(); +#endif } // create cursor control @@ -159,10 +162,6 @@ CIrrDeviceLinux::CIrrDeviceLinux(const SIrrlichtCreationParameters& param) if (!VideoDriver) return; -#ifdef _IRR_COMPILE_WITH_X11_ - createInputContext(); -#endif - createGUIAndScene(); }