From 440c588a3371d110237536e3e21607e561e01fe1 Mon Sep 17 00:00:00 2001 From: Krzysztof Date: Mon, 11 Jan 2016 12:23:53 +0100 Subject: [PATCH] Pass --touch-devices to chromium contents under X11 --- atom/browser/atom_browser_main_parts.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atom/browser/atom_browser_main_parts.cc b/atom/browser/atom_browser_main_parts.cc index eadd52ac4..a046f3428 100644 --- a/atom/browser/atom_browser_main_parts.cc +++ b/atom/browser/atom_browser_main_parts.cc @@ -21,6 +21,7 @@ #if defined(USE_X11) #include "chrome/browser/ui/libgtk2ui/gtk2_util.h" +#include "ui/events/devices/x11/touch_factory_x11.h" #endif namespace atom { @@ -116,6 +117,10 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() { node_bindings_->PrepareMessageLoop(); node_bindings_->RunMessageLoop(); +#if defined(USE_X11) + ui::TouchFactory::SetTouchDeviceListFromCommandLine(); +#endif + // Start idle gc. gc_timer_.Start( FROM_HERE, base::TimeDelta::FromMinutes(1),