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