| Index: ui/base/touch/touch_factory.cc
|
| diff --git a/ui/base/touch/touch_factory.cc b/ui/base/touch/touch_factory.cc
|
| index 0f1c6617c2f787e2adc782108531dd0cd4ea90dc..14c5b96ba759ee3f3d3e3fc01a3faca0d78869bd 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) ==
|
|
|