summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_x11.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-12-21 19:32:31 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-12-21 19:32:31 +0100
commit33fde43491bd5ac0c357b387e51524b142fdfe75 (patch)
tree9862197cb6b489f4fc30761aea38bce25257f65d /plugingui/nativewindow_x11.cc
parentd8943ff77410ca6a46956f660211c87dee8e1e84 (diff)
Try to initialise threaded Xlib calls.
Diffstat (limited to 'plugingui/nativewindow_x11.cc')
-rw-r--r--plugingui/nativewindow_x11.cc6
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)
{