Michael Catanzaro 12a10e3
From 9f0d8a6e7444dd59729bac2c24717ea72aea5080 Mon Sep 17 00:00:00 2001
Michael Catanzaro 12a10e3
From: Michael Catanzaro <mcatanzaro@gnome.org>
Michael Catanzaro 12a10e3
Date: Thu, 21 Jul 2016 20:48:12 -0500
Michael Catanzaro 12a10e3
Subject: [PATCH] Revert "Don't call XInitThreads in Wayland"
Michael Catanzaro 12a10e3
Michael Catanzaro 12a10e3
This reverts commit a9ede294c57bc5738be3c33cba4ef88b9a7d4a0e.
Michael Catanzaro 12a10e3
Michael Catanzaro 12a10e3
It causes empathy-call to crash when run in X11, and fixes absolutely
Michael Catanzaro 12a10e3
nothing. See the bug for details.
Michael Catanzaro 12a10e3
Michael Catanzaro 12a10e3
Thanks to Diane Trout for investigating and preparing a substantially-
Michael Catanzaro 12a10e3
identical patch.
Michael Catanzaro 12a10e3
Michael Catanzaro 12a10e3
https://bugzilla.gnome.org/show_bug.cgi?id=767516
Michael Catanzaro 12a10e3
---
Michael Catanzaro 12a10e3
 src/empathy-call.c | 9 +++------
Michael Catanzaro 12a10e3
 1 file changed, 3 insertions(+), 6 deletions(-)
Michael Catanzaro 12a10e3
Michael Catanzaro 12a10e3
diff --git a/src/empathy-call.c b/src/empathy-call.c
Michael Catanzaro 12a10e3
index 8821bf3..1ac8a79 100644
Michael Catanzaro 12a10e3
--- a/src/empathy-call.c
Michael Catanzaro 12a10e3
+++ b/src/empathy-call.c
Michael Catanzaro 12a10e3
@@ -28,7 +28,6 @@
Michael Catanzaro 12a10e3
 #include <tp-account-widgets/tpaw-utils.h>
Michael Catanzaro 12a10e3
 
Michael Catanzaro 12a10e3
 #ifdef CLUTTER_WINDOWING_X11
Michael Catanzaro 12a10e3
-#include <gdk/gdkx.h>
Michael Catanzaro 12a10e3
 #include <X11/Xlib.h>
Michael Catanzaro 12a10e3
 #endif
Michael Catanzaro 12a10e3
 
Michael Catanzaro 12a10e3
@@ -216,11 +215,9 @@ main (int argc,
Michael Catanzaro 12a10e3
   g_setenv ("GST_DEBUG_DUMP_DOT_DIR", g_get_tmp_dir (), FALSE);
Michael Catanzaro 12a10e3
 
Michael Catanzaro 12a10e3
 #ifdef GDK_WINDOWING_X11
Michael Catanzaro 12a10e3
-  if (GDK_IS_X11_DISPLAY (gdk_display_get_default ())) {
Michael Catanzaro 12a10e3
-    /* We can't call clutter_gst_init() before gtk_clutter_init(), so no choice
Michael Catanzaro 12a10e3
-     * but to intiialise X11 threading ourself */
Michael Catanzaro 12a10e3
-    XInitThreads ();
Michael Catanzaro 12a10e3
-  }
Michael Catanzaro 12a10e3
+  /* We can't call clutter_gst_init() before gtk_clutter_init(), so no choice
Michael Catanzaro 12a10e3
+   * but to intiialise X11 threading ourself */
Michael Catanzaro 12a10e3
+  XInitThreads ();
Michael Catanzaro 12a10e3
 #endif
Michael Catanzaro 12a10e3
 
Michael Catanzaro 12a10e3
   optcontext = g_option_context_new (N_("- Empathy Audio/Video Client"));