diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-05-20 18:24:26 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-02 19:05:44 +0200 |
commit | efbb0a575b3ee9ea0fe84de37c544d3299b56656 (patch) | |
tree | 62d8333ecf250d414d223452f7c3b016446a3808 | |
parent | eae91cf3d271e2d7ac236002824e419b37cbff7b (diff) | |
download | tdelibs-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)
-rw-r--r-- | kinit/kinit.cpp | 1 |
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); } |