Call XInitThreads() on startup
authorMohammed Sameer <msameer@foolab.org>
Wed, 5 Sep 2012 15:25:53 +0000 (18:25 +0300)
committerMohammed Sameer <msameer@foolab.org>
Thu, 6 Sep 2012 16:10:10 +0000 (19:10 +0300)
src/main.cpp

index c582233..1aac8ab 100644 (file)
@@ -4,12 +4,15 @@
 #include <QDeclarativeEngine>
 #include <QtDeclarative>
 #include <QGLWidget>
+#include <X11/Xlib.h>
 
 #include "imports/plugin.h"
 
 #include "settings.h"
 
 Q_DECL_EXPORT int main(int argc, char *argv[]) {
+  XInitThreads();
+
   QApplication app(argc, argv);
 
   QDeclarativeView view;