summaryrefslogtreecommitdiffstats
path: root/redhat/tdelibs/kdelibs-3.5.13-fix_x11_threading_when_kinit_is_used.patch
blob: 1cdb91958658b29f264425c9e4b7172cd4d16a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
commit 6c806af1c99890adecb42abf52f4d6dc8ae72899
Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date:   1337556266 -0500

    Initialize X11 threading when kinit is used to launch a program
    This closes Bug 812
    Thanks to Slávek Banko for the patch!

diff --git a/kinit/kinit.cpp b/kinit/kinit.cpp
index 2a74368..191757d 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(kdeinit_xio_errhandler);
     XSetErrorHandler(kdeinit_x_errhandler);
 }