summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kernel/qapplication_x11.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
index f8dd445..c2bb456 100644
--- a/src/kernel/qapplication_x11.cpp
+++ b/src/kernel/qapplication_x11.cpp
@@ -1633,7 +1633,8 @@ void qt_init_internal( int *argcptr, char **argv,
setlocale( LC_NUMERIC, "C" ); // make sprintf()/scanf() work
#if defined(QT_THREAD_SUPPORT)
- if ( qt_is_gui_used ) {
+ if (( qt_is_gui_used ) && ( !display )) {
+ // If Qt is running standalone with a GUI, initialize X11 threading
XInitThreads();
}
#endif