diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-12-21 19:32:31 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-12-21 19:32:31 +0100 |
commit | 33fde43491bd5ac0c357b387e51524b142fdfe75 (patch) | |
tree | 9862197cb6b489f4fc30761aea38bce25257f65d /plugingui/nativewindow_x11.cc | |
parent | d8943ff77410ca6a46956f660211c87dee8e1e84 (diff) |
Try to initialise threaded Xlib calls.
Diffstat (limited to 'plugingui/nativewindow_x11.cc')
-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) { |