| 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).
|
|
|