Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1040)

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 487453004: Call XInitThreads on host startup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Xlib.h include Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index b0c8ea01c18b1f31ea77f3d03dc2a3319f764e01..fb1d8e0234bb38ce80e73d74644d6d67d0bfb973 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -91,6 +91,7 @@
#if defined(OS_LINUX)
#include <gtk/gtk.h>
+#include <X11/Xlib.h>
#include "remoting/host/audio_capturer_linux.h"
#endif // defined(OS_LINUX)
@@ -1417,6 +1418,9 @@ void HostProcess::OnCrash(const std::string& function_name,
int HostProcessMain() {
#if defined(OS_LINUX)
+ // Required in order for us to run multiple X11 threads.
+ XInitThreads();
+
// Required for any calls into GTK functions, such as the Disconnect and
// Continue windows, though these should not be used for the Me2Me case
// (crbug.com/104377).
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698