Fix grabbing capture when the mouse is pressed on Desktop Linux.
commit890bd4742e41d386885a3bb3f5f72bac3065659a
authorpkotwicz <pkotwicz@chromium.org>
Wed, 4 Feb 2015 04:11:27 +0000 (3 20:11 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 4 Feb 2015 04:13:45 +0000 (4 04:13 +0000)
tree56a2984fdb6866c573fbe30beb8b64ef4dfae654
parent03df6f6cec5f06ffb4bda1d03670c2a1a6b26bd0
Fix grabbing capture when the mouse is pressed on Desktop Linux.

The X specification allows the OS to grab the mouse when a mouse button is
pressed. The OS grab was causing XGrabPointer() in
DesktopWindowTreeHostX11::SetCapture() to fail.

BUG=426380
TEST=Manual

Review URL: https://codereview.chromium.org/749063003

Cr-Commit-Position: refs/heads/master@{#314501}
ui/events/devices/x11/device_data_manager_x11.cc
ui/events/devices/x11/device_data_manager_x11.h
ui/events/devices/x11/touch_factory_x11.cc
ui/views/widget/desktop_aura/x11_pointer_grab.cc