From 77a869fd4612c0cdffdee2f19ae5db3dda77adb6 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Mon, 9 Sep 2013 18:14:59 +0100 Subject: Avoid X11 threading errors; fixes #1 Thanks: http://stackoverflow.com/a/18690540/472927 --- mktrayicon.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mktrayicon.c') diff --git a/mktrayicon.c b/mktrayicon.c index 4b3e955..063eccb 100644 --- a/mktrayicon.c +++ b/mktrayicon.c @@ -4,6 +4,7 @@ */ #include #include +#include #include #include @@ -180,6 +181,7 @@ int main(int argc, char **argv) FILE *fifo; GThread *reader; + XInitThreads(); /* see http://stackoverflow.com/a/18690540/472927 */ gtk_init(&argc, &argv); if (argc == 4 && strcmp(argv[1], "-i") == 0) { -- cgit