summaryrefslogtreecommitdiffstats
path: root/ui/base/touch/touch_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/touch/touch_factory.cc')
-rw-r--r--ui/base/touch/touch_factory.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/ui/base/touch/touch_factory.cc b/ui/base/touch/touch_factory.cc
index 0f1c661..14c5b96 100644
--- a/ui/base/touch/touch_factory.cc
+++ b/ui/base/touch/touch_factory.cc
@@ -53,19 +53,6 @@ TouchFactory::TouchFactory()
SetCursorVisible(false, false);
UpdateDeviceList(display);
- // Make sure the list of devices is kept up-to-date by listening for
- // XI_HierarchyChanged event on the root window.
- unsigned char mask[XIMaskLen(XI_LASTEVENT)];
- memset(mask, 0, sizeof(mask));
-
- XISetMask(mask, XI_HierarchyChanged);
-
- XIEventMask evmask;
- evmask.deviceid = XIAllDevices;
- evmask.mask_len = sizeof(mask);
- evmask.mask = mask;
- XISelectEvents(display, ui::GetX11RootWindow(), &evmask, 1);
-
CommandLine* cmdline = CommandLine::ForCurrentProcess();
touch_events_disabled_ = cmdline->HasSwitch(switches::kTouchEvents) &&
cmdline->GetSwitchValueASCII(switches::kTouchEvents) ==