Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Issue 749063003: Fix grabbing capture when the mouse is pressed on Desktop Linux. (Closed)

Created:
6 years, 1 month ago by pkotwicz
Modified:
5 years, 10 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/890bd4742e41d386885a3bb3f5f72bac3065659a Cr-Commit-Position: refs/heads/master@{#314501}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -4 lines) Patch
M ui/events/devices/x11/device_data_manager_x11.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_pointer_grab.cc View 1 2 3 4 3 chunks +46 lines, -4 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
pkotwicz
Sadrul, can you please take a look? I tried always ungrabbing the pointer and then ...
6 years, 1 month ago (2014-11-22 20:23:18 UTC) #4
sadrul
https://codereview.chromium.org/749063003/diff/40001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/749063003/diff/40001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode964 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:964: if (success == AlreadyGrabbed) { Can you link to ...
6 years ago (2014-11-24 15:46:02 UTC) #5
pkotwicz
https://codereview.chromium.org/749063003/diff/40001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/749063003/diff/40001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode964 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:964: if (success == AlreadyGrabbed) { The docs are not ...
6 years ago (2014-11-24 16:07:41 UTC) #6
pkotwicz
Sadrul, ping?
6 years ago (2014-11-26 15:08:51 UTC) #7
sadrul
https://codereview.chromium.org/749063003/diff/40001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/749063003/diff/40001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode964 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:964: if (success == AlreadyGrabbed) { On 2014/11/24 16:07:41, pkotwicz ...
6 years ago (2014-11-27 17:48:18 UTC) #8
pkotwicz
I looked into this some more and the problem is that XI2 capture is not ...
6 years ago (2014-11-28 02:05:18 UTC) #9
pkotwicz
Sadrul, can you please take another look? https://codereview.chromium.org/749063003/diff/80001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/749063003/diff/80001/ui/base/x/x11_util.cc#newcode313 ui/base/x/x11_util.cc:313: } else ...
6 years ago (2014-12-01 22:42:49 UTC) #11
pkotwicz
Ping!
6 years ago (2014-12-04 20:12:35 UTC) #12
pkotwicz
Sadrul, Ping?
6 years ago (2014-12-13 02:42:22 UTC) #13
sadrul
https://codereview.chromium.org/749063003/diff/80001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/749063003/diff/80001/ui/base/x/x11_util.cc#newcode301 ui/base/x/x11_util.cc:301: evmask.deviceid = XIAllDevices; Should you use master_pointers[i] here? https://codereview.chromium.org/749063003/diff/80001/ui/base/x/x11_util.cc#newcode313 ...
6 years ago (2014-12-22 21:09:00 UTC) #14
sadrul
https://codereview.chromium.org/749063003/diff/80001/ui/views/widget/desktop_aura/x11_move_loop.h File ui/views/widget/desktop_aura/x11_move_loop.h (right): https://codereview.chromium.org/749063003/diff/80001/ui/views/widget/desktop_aura/x11_move_loop.h#newcode22 ui/views/widget/desktop_aura/x11_move_loop.h:22: virtual bool RunMoveLoop(aura::Window* window) = 0; Would it be ...
6 years ago (2014-12-22 21:46:36 UTC) #15
sadrul
One more nit to avoid another round-trip: let's have this ScopedGrabPointer internally inside views, instead ...
6 years ago (2014-12-22 23:11:02 UTC) #16
pkotwicz
Sadrul, can you please take another look? As requested, I have split this CL into ...
6 years ago (2014-12-23 00:29:49 UTC) #17
sadrul
On 2014/12/23 00:29:49, pkotwicz wrote: > Sadrul, can you please take another look? As requested, ...
6 years ago (2014-12-23 16:54:31 UTC) #18
pkotwicz
Sadrul, can you please take another look now that part 1 (https://codereview.chromium.org/821803002/) has landed?
5 years, 10 months ago (2015-01-28 19:40:12 UTC) #21
pkotwicz
Sadrul, Ping?
5 years, 10 months ago (2015-01-30 15:44:56 UTC) #22
sadrul
https://codereview.chromium.org/749063003/diff/160001/ui/views/widget/desktop_aura/x11_pointer_grab.cc File ui/views/widget/desktop_aura/x11_pointer_grab.cc (right): https://codereview.chromium.org/749063003/diff/160001/ui/views/widget/desktop_aura/x11_pointer_grab.cc#newcode32 ui/views/widget/desktop_aura/x11_pointer_grab.cc:32: for (auto master_pointer : master_pointers) { int https://codereview.chromium.org/749063003/diff/160001/ui/views/widget/desktop_aura/x11_pointer_grab.cc#newcode41 ui/views/widget/desktop_aura/x11_pointer_grab.cc:41: ...
5 years, 10 months ago (2015-02-03 01:22:49 UTC) #23
pkotwicz
Sadrul, can you please take another look? https://codereview.chromium.org/749063003/diff/160001/ui/views/widget/desktop_aura/x11_pointer_grab.cc File ui/views/widget/desktop_aura/x11_pointer_grab.cc (right): https://codereview.chromium.org/749063003/diff/160001/ui/views/widget/desktop_aura/x11_pointer_grab.cc#newcode32 ui/views/widget/desktop_aura/x11_pointer_grab.cc:32: for (auto ...
5 years, 10 months ago (2015-02-03 15:51:59 UTC) #26
sadrul
LGTM
5 years, 10 months ago (2015-02-04 03:01:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/749063003/220001
5 years, 10 months ago (2015-02-04 03:22:49 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:220001)
5 years, 10 months ago (2015-02-04 04:11:54 UTC) #30
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 04:14:19 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/890bd4742e41d386885a3bb3f5f72bac3065659a
Cr-Commit-Position: refs/heads/master@{#314501}

Powered by Google App Engine
This is Rietveld 408576698