Pass --touch-devices to chromium contents under X11
authorKrzysztof <git@10.10.0.5>
Mon, 11 Jan 2016 11:23:53 +0000 (12:23 +0100)
committerKrzysztof <git@10.10.0.5>
Mon, 11 Jan 2016 11:23:53 +0000 (12:23 +0100)
atom/browser/atom_browser_main_parts.cc

index eadd52ac44c8c6902393177a8961d63db416644e..a046f34287eeebbe1b4aea717c56befb65a70429 100644 (file)
@@ -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),