diff options
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/nativewindow_x11.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc index 6330f86..a0316b9 100644 --- a/plugingui/nativewindow_x11.cc +++ b/plugingui/nativewindow_x11.cc @@ -39,6 +39,12 @@ NativeWindowX11::NativeWindowX11(Window& window) : buffer(nullptr) , window(window) { + auto status = XInitThreads(); + if(status) + { + ERR(X11, "Could not initialise threaded Xlib calls (XInitThreads)"); + } + display = XOpenDisplay(nullptr); if(display == nullptr) { |