Avoid crash if setting modifiers fails, closes #5158

This commit is contained in:
Juan Linietsky 2016-07-08 11:26:48 -03:00
parent dc58be9f35
commit 7e3044981e
1 changed files with 3 additions and 1 deletions

View File

@ -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;