Avoid crash if setting modifiers fails, closes #5158
(cherry picked from commit 7e3044981e
)
This commit is contained in:
parent
3963f89ebd
commit
6e7db99614
|
@ -114,7 +114,9 @@ void OS_X11::initialize(const VideoMode& p_desired,int p_video_driver,int p_audi
|
||||||
x11_display = XOpenDisplay(NULL);
|
x11_display = XOpenDisplay(NULL);
|
||||||
|
|
||||||
char * modifiers = XSetLocaleModifiers ("@im=none");
|
char * modifiers = XSetLocaleModifiers ("@im=none");
|
||||||
ERR_FAIL_COND( modifiers == NULL );
|
if (modifiers==NULL) {
|
||||||
|
WARN_PRINT("Error setting locale modifiers");
|
||||||
|
}
|
||||||
|
|
||||||
xim = XOpenIM (x11_display, NULL, NULL, NULL);
|
xim = XOpenIM (x11_display, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue