wx: Call XInitThreads on startup

This commit is contained in:
Connor McLaughlin 2021-10-16 11:56:20 +10:00 committed by refractionpcsx2
parent 0f5ed59e50
commit 97474488d8
1 changed files with 12 additions and 0 deletions

View File

@ -36,6 +36,13 @@
#include <wx/stdpaths.h>
#include <memory>
#ifdef __WXGTK__
#include <gdk/gdkx.h>
#ifdef GDK_WINDOWING_X11
#include <X11/Xlib.h>
#endif
#endif // __WXGTK__
using namespace pxSizerFlags;
void Pcsx2App::DetectCpuAndUserMode()
@ -707,6 +714,11 @@ Pcsx2App::Pcsx2App()
}
#endif
#ifdef GDK_WINDOWING_X11
// This *must* be done in the constructor, before wx starts making X calls.
XInitThreads();
#endif
m_PendingSaves = 0;
m_ScheduledTermination = false;
m_UseGUI = true;