[sushi] Fix crasher by initialising threading in X11
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] Fix crasher by initialising threading in X11
- Date: Wed, 29 Feb 2012 14:08:44 +0000 (UTC)
commit 52d5b34ff9674c31109cfb221a93209bdba651f1
Author: Gert Michael Kulyk <gkulyk klio>
Date: Sun Feb 19 23:01:57 2012 +0100
Fix crasher by initialising threading in X11
src/main.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 63797e8..e0f4f31 100644
--- a/src/main.c
+++ b/src/main.c
@@ -37,6 +37,11 @@
#include <gjs/gjs.h>
#include <gtk/gtk.h>
+
+#ifdef GDK_WINDOWING_X11
+#include <X11/Xlib.h>
+#endif
+
#include <clutter/clutter.h>
#include <clutter-gtk/clutter-gtk.h>
@@ -141,6 +146,10 @@ main (int argc, char **argv)
GtkSettings *settings;
GError *error;
+#ifdef GDK_WINDOWING_X11
+ XInitThreads ();
+#endif
+
clutter_x11_set_use_argb_visual (TRUE);
if (gtk_clutter_init (&argc, &argv) < 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]