mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
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);
|
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");
|
||||||
|
}
|
||||||
|
|
||||||
const char* err;
|
const char* err;
|
||||||
xrr_get_monitors = NULL;
|
xrr_get_monitors = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user