From 33fde43491bd5ac0c357b387e51524b142fdfe75 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 21 Dec 2015 19:32:31 +0100 Subject: Try to initialise threaded Xlib calls. --- plugingui/nativewindow_x11.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- cgit v1.2.3