summaryrefslogtreecommitdiffstats
path: root/kinit/kinit.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-05-20 18:24:26 -0500
committerTimothy Pearson <[email protected]>2012-05-20 18:24:26 -0500
commit6c806af1c99890adecb42abf52f4d6dc8ae72899 (patch)
tree224f809a0336928e7033b5ecc4e03eeadd870d07 /kinit/kinit.cpp
parentc7f5675eef933c33cbbfd392cdb0ee442054dd00 (diff)
downloadtdelibs-6c806af1c99890adecb42abf52f4d6dc8ae72899.tar.gz
tdelibs-6c806af1c99890adecb42abf52f4d6dc8ae72899.zip
Initialize X11 threading when kinit is used to launch a program
This closes Bug 812 Thanks to Slávek Banko for the patch!
Diffstat (limited to 'kinit/kinit.cpp')
-rw-r--r--kinit/kinit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kinit/kinit.cpp b/kinit/kinit.cpp
index 2a74368e1..191757d08 100644
--- a/kinit/kinit.cpp
+++ b/kinit/kinit.cpp
@@ -1615,6 +1615,7 @@ int tdeinit_x_errhandler( Display *dpy, XErrorEvent *err )
// another X connection for startup notification purposes
static void setupX()
{
+ XInitThreads();
XSetIOErrorHandler(tdeinit_xio_errhandler);
XSetErrorHandler(tdeinit_x_errhandler);
}