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

Issue 821803002: Use XGrabPointer instead of XChangeActivatePointerGrab() to change the cursor during a pointer grab (Closed)

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

Description

This is step 1 in enabling XI2 mouse grab on Desktop Linux. This CL replaces the use of XChangeActivePointerGrab() (of which there is no XI2 equivalent) with XGrabPointer (of which there is an XI2 equivalent). BUG=426380 TEST=None Committed: https://crrev.com/955bab609f5c16d36ad51af6b975e33c1b6367b8 Cr-Commit-Position: refs/heads/master@{#313536}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -26 lines) Patch
M ui/views/views.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
A ui/views/widget/desktop_aura/x11_pointer_grab.h View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
A ui/views/widget/desktop_aura/x11_pointer_grab.cc View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc View 1 2 3 4 4 chunks +6 lines, -21 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
pkotwicz
Sadrul, PTAL This CL contains the "refactoring" part of https://codereview.chromium.org/749063003/ https://codereview.chromium.org/821803002/diff/60001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/821803002/diff/60001/ui/base/x/x11_util.cc#newcode287 ...
6 years ago (2014-12-22 23:44:16 UTC) #5
sadrul
https://codereview.chromium.org/821803002/diff/60001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/821803002/diff/60001/ui/base/x/x11_util.cc#newcode287 ui/base/x/x11_util.cc:287: int GrabPointer(XID window, bool owner_events, ::Cursor cursor) { On ...
6 years ago (2014-12-23 16:53:50 UTC) #6
pkotwicz
Sadrul, can you please take another look? Please ping me if my comments are unclear. ...
6 years ago (2014-12-23 18:22:22 UTC) #7
pkotwicz
Ping!
5 years, 11 months ago (2015-01-13 23:06:01 UTC) #8
sadrul
https://codereview.chromium.org/821803002/diff/60001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/821803002/diff/60001/ui/base/x/x11_util.cc#newcode287 ui/base/x/x11_util.cc:287: int GrabPointer(XID window, bool owner_events, ::Cursor cursor) { > ...
5 years, 11 months ago (2015-01-14 20:34:02 UTC) #9
pkotwicz
https://codereview.chromium.org/821803002/diff/60001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/821803002/diff/60001/ui/base/x/x11_util.cc#newcode287 ui/base/x/x11_util.cc:287: int GrabPointer(XID window, bool owner_events, ::Cursor cursor) { We ...
5 years, 11 months ago (2015-01-14 20:50:07 UTC) #10
pkotwicz
Sadrul, can you please take another look?
5 years, 11 months ago (2015-01-14 22:36:07 UTC) #12
sadrul
LGTM https://codereview.chromium.org/821803002/diff/100001/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc File ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc (right): https://codereview.chromium.org/821803002/diff/100001/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc#newcode189 ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc:189: NOTREACHED(); Add a comment like so: NOTREACHED() << ...
5 years, 11 months ago (2015-01-15 23:41:21 UTC) #13
pkotwicz
https://codereview.chromium.org/821803002/diff/100001/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc File ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc (right): https://codereview.chromium.org/821803002/diff/100001/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc#newcode189 ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc:189: NOTREACHED(); This message would be incorrect. We reach here ...
5 years, 11 months ago (2015-01-16 15:22:46 UTC) #14
sadrul
https://codereview.chromium.org/821803002/diff/100001/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc File ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc (right): https://codereview.chromium.org/821803002/diff/100001/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc#newcode189 ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc:189: NOTREACHED(); On 2015/01/16 15:22:46, pkotwicz wrote: > This message ...
5 years, 11 months ago (2015-01-16 15:25:14 UTC) #15
sadrul
https://codereview.chromium.org/821803002/diff/100001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/821803002/diff/100001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode699 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:699: cursor_manager_->GetInitializedCursor(ui::kCursorGrabbing)); Is this going to do the right thing ...
5 years, 11 months ago (2015-01-16 15:38:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821803002/140001
5 years, 11 months ago (2015-01-16 15:46:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/23266) Try jobs failed on following ...
5 years, 11 months ago (2015-01-16 17:41:24 UTC) #23
pkotwicz
Sadrul, can you please take another look? https://codereview.chromium.org/821803002/diff/140001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/821803002/diff/140001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode698 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:698: move_loop_->UpdateCursor( I ...
5 years, 11 months ago (2015-01-16 21:37:53 UTC) #25
pkotwicz
Sadrul, ping?
5 years, 11 months ago (2015-01-23 21:34:07 UTC) #26
pkotwicz
Sadrul, ping?
5 years, 11 months ago (2015-01-23 21:34:07 UTC) #27
sadrul
You need to update the BUILD file for gn
5 years, 11 months ago (2015-01-26 18:17:15 UTC) #28
pkotwicz
The build on GN works now. Sadrul, can you please take another look?
5 years, 11 months ago (2015-01-27 16:13:58 UTC) #29
sadrul
lgtm
5 years, 11 months ago (2015-01-27 16:20:26 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821803002/220001
5 years, 10 months ago (2015-01-28 16:07:48 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:220001)
5 years, 10 months ago (2015-01-28 17:29:30 UTC) #34
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 17:30:34 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/955bab609f5c16d36ad51af6b975e33c1b6367b8
Cr-Commit-Position: refs/heads/master@{#313536}

Powered by Google App Engine
This is Rietveld 408576698