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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host_main.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 | « no previous file | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me/it2me_native_messaging_host_main.cc
diff --git a/remoting/host/it2me/it2me_native_messaging_host_main.cc b/remoting/host/it2me/it2me_native_messaging_host_main.cc
index bec6b3901f534c0f65f4c80d4a1c7da748f85323..a8bff89223e56861e6e0672e46a33a1b95c9db25 100644
--- a/remoting/host/it2me/it2me_native_messaging_host_main.cc
+++ b/remoting/host/it2me/it2me_native_messaging_host_main.cc
@@ -20,6 +20,7 @@
#if defined(OS_LINUX)
#include <gtk/gtk.h>
+#include <X11/Xlib.h>
#endif // defined(OS_LINUX)
#if defined(OS_MACOSX)
@@ -64,6 +65,9 @@ int StartIt2MeNativeMessagingHost() {
// Cannot use TOOLKIT_GTK because it is not defined when aura is enabled.
#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. Calling with NULL arguments because we don't have
// any command line arguments for gtk to consume.
« no previous file with comments | « no previous file | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698