summaryrefslogtreecommitdiffstats
path: root/kinit
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-20 18:24:26 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-06-02 19:05:44 +0200
commitefbb0a575b3ee9ea0fe84de37c544d3299b56656 (patch)
tree62d8333ecf250d414d223452f7c3b016446a3808 /kinit
parenteae91cf3d271e2d7ac236002824e419b37cbff7b (diff)
downloadtdelibs-efbb0a575b3ee9ea0fe84de37c544d3299b56656.tar.gz
tdelibs-efbb0a575b3ee9ea0fe84de37c544d3299b56656.zip
Initialize X11 threading when kinit is used to launch a program
This closes Bug 812 Thanks to Slávek Banko for the patch! (cherry picked from commit 6c806af1c99890adecb42abf52f4d6dc8ae72899)
Diffstat (limited to 'kinit')
-rw-r--r--kinit/kinit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kinit/kinit.cpp b/kinit/kinit.cpp
index bda7a7d35..73f292877 100644
--- a/kinit/kinit.cpp
+++ b/kinit/kinit.cpp
@@ -1615,6 +1615,7 @@ int kdeinit_x_errhandler( Display *dpy, XErrorEvent *err )
// another X connection for startup notification purposes
static void setupX()
{
+ XInitThreads();
XSetIOErrorHandler(kdeinit_xio_errhandler);
XSetErrorHandler(kdeinit_x_errhandler);
}