; * 12to11.c (XLMain): Fix call to XInitThreads.

This commit is contained in:
hujianwei 2022-11-05 12:02:15 +00:00
parent c26d1c4939
commit 892b74ede2

View file

@ -171,6 +171,9 @@ XLMain (int argc, char **argv)
/* Set the locale. */ /* Set the locale. */
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
/* Initialize Xlib threads. */
XInitThreads ();
dpy = XOpenDisplay (NULL); dpy = XOpenDisplay (NULL);
wl_display = wl_display_create (); wl_display = wl_display_create ();
@ -188,9 +191,6 @@ XLMain (int argc, char **argv)
exit (1); exit (1);
} }
/* Initialize Xlib threads. */
XInitThreads ();
/* Call XGetDefault with some dummy values to have the resource /* Call XGetDefault with some dummy values to have the resource
database set up. */ database set up. */
XrmInitialize (); XrmInitialize ();