From 6c806af1c99890adecb42abf52f4d6dc8ae72899 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 20 May 2012 18:24:26 -0500 Subject: Initialize X11 threading when kinit is used to launch a program This closes Bug 812 Thanks to Slávek Banko for the patch! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kinit/kinit.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'kinit') 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); } -- cgit v1.2.3