summaryrefslogtreecommitdiff
path: root/mktrayicon.c
diff options
context:
space:
mode:
Diffstat (limited to 'mktrayicon.c')
-rw-r--r--mktrayicon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mktrayicon.c b/mktrayicon.c
index 4b3e955..063eccb 100644
--- a/mktrayicon.c
+++ b/mktrayicon.c
@@ -4,6 +4,7 @@
*/
#include <gtk/gtk.h>
#include <glib.h>
+#include <X11/Xlib.h>
#include <stdio.h>
#include <stdlib.h>
@@ -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) {
bgstack15