summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-14 19:30:08 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-14 19:30:08 +0200
commit98a70e0e80e82f8bb0205d106c745cfa545e21a0 (patch)
tree8c60478bcf17e0d9ee88e19a76a280aedb35ef9a /facetracknoir
parent2516f604e6d6728a994d607230ff22550019634c (diff)
Init X11 threads on Q_OS_UNIX
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index bc0f973b..4dc96603 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -30,13 +30,17 @@
#include <QList>
#if defined(_WIN32)
-#include <windows.h>
+# include <windows.h>
//#pragma comment(linker, "/SUBSYSTEM:console /ENTRY:mainCRTStartup")
+#elif defined(Q_OS_UNIX)
+#include <X11/Xlib.h>
#endif
int main(int argc, char** argv)
{
#if defined(_WIN32)
(void) timeBeginPeriod(1);
+#elif defined(Q_OS_UNIX)
+ XInitThreads();
#endif
QApplication app(argc, argv);
QFont font;