diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-07 11:28:35 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 07:48:46 +0100 |
commit | fd3eb4515639e000b899544827b5fd4ff9473937 (patch) | |
tree | 0a9ee3050034db0b841d48d35810f8d28bfeb35f /gui/CMakeLists.txt | |
parent | ba798bf5f69a55973abf9af85bbe6aaf30c24f98 (diff) |
gui/init: call XInitThreads(3)
The Qt function for enable X11 threads is obsolete given it fully uses
Xcb. We're using some Xlib calls in qxt-mini in places. Call it manually
rather than risking arbitrary crashes.
Diffstat (limited to 'gui/CMakeLists.txt')
-rw-r--r-- | gui/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index cb5e2bdc..e22017ea 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -15,3 +15,7 @@ elseif(LINUX) otr_pkgconfig(${self} libprocps) endif() +if(NOT APPLE AND NOT WIN32) + target_compile_definitions(${self} PRIVATE -DOTR_X11_THREADS) + otr_pkgconfig(${self} x11) +endif() |