summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-26 21:49:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-27 01:05:52 +0200
commit48e785f62b5f9aef17c7b8b06f5c7beaf74cdf68 (patch)
tree0d23dd43ae1b716de466671d3df48194cf5178ea /facetracknoir/main.cpp
parentdc322bc02965565c13fdc9b14093d6b936abe833 (diff)
Set x11 threads as soon as possible
Diffstat (limited to 'facetracknoir/main.cpp')
-rw-r--r--facetracknoir/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index 36bccfad..58357f42 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -57,14 +57,13 @@ int main(int argc, char** argv)
#ifdef OPENTRACK_BREAKPAD
auto handler = new ExceptionHandler(L".", nullptr, dumpCallback, nullptr, -1);
#endif
-
+ QApplication::setAttribute(Qt::AA_X11InitThreads, true);
QApplication app(argc, argv);
QFont font;
font.setFamily(font.defaultFamily());
font.setPointSize(10);
font.setPixelSize(10*4/3);
QApplication::setFont(font);
- QApplication::setAttribute(Qt::AA_X11InitThreads, true);
FaceTrackNoIR w;
QDesktopWidget desktop;