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

Unified Diff: chrome/browser/chrome_browser_main_extra_parts_x11.cc

Issue 2199063003: Linux: Add xcb FD to glib event loop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor Created 4 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 | « build/linux/system.gyp ('k') | chrome/installer/linux/debian/expected_deps_ia32 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_extra_parts_x11.cc
diff --git a/chrome/browser/chrome_browser_main_extra_parts_x11.cc b/chrome/browser/chrome_browser_main_extra_parts_x11.cc
index 76e8fb9fc4900d814705b855885ce873a6a9d2c8..9b81eb483cf37a06a920ca7bb06217d6a0fe5d49 100644
--- a/chrome/browser/chrome_browser_main_extra_parts_x11.cc
+++ b/chrome/browser/chrome_browser_main_extra_parts_x11.cc
@@ -19,6 +19,11 @@
#include "ui/base/x/x11_util_internal.h"
#include "ui/events/platform/x11/x11_event_source.h"
+#ifdef USE_GLIB
+#include "ui/base/x/x11_window_cache.h"
+#include "ui/base/x/x11_window_cache_event_source.h"
+#endif
+
using content::BrowserThread;
namespace {
@@ -98,6 +103,9 @@ void ChromeBrowserMainExtraPartsX11::PostMainMessageLoopStart() {
// if X exits before us.
ui::SetX11ErrorHandlers(BrowserX11ErrorHandler, BrowserX11IOErrorHandler);
+ new ui::XWindowCacheEventSource(new ui::XWindowCache(
+ gfx::GetXDisplay(), DefaultRootWindow(gfx::GetXDisplay())));
+
#if !defined(OS_CHROMEOS)
// It is possible for X11EventSource to not have been created (e.g. when
// running as a mus client).
« no previous file with comments | « build/linux/system.gyp ('k') | chrome/installer/linux/debian/expected_deps_ia32 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698