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

Issue 2410773002: Linux Aura: Use managed tab dragging when possible (Reland)

Created:
4 years, 2 months ago by Tom (Use chromium acct)
Modified:
4 years, 1 month ago
CC:
chromium-reviews, tfarina, sadrul, derat+watch_chromium.org, dcheng, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Linux Aura: Use managed tab dragging when possible (Reland) This CL uses _NET_WM_MOVERESIZE to handle tab dragging for managed windows on select window managers. This fixes various issues I've seen with tab dragging including: * Window movement is no longer constrained by screen bounds * Windows animating in during tab dragging is minimized * Tab dragging is improved on tiling WMs * Better integration with desktop environment (you can now drag to the top of the screen to maximize if the DE supports it, or drag left/right between workspaces) BUG=416119, 617806, 635195 R=erg@chromium.org,sky@chromium.org Committed: https://crrev.com/fbb8975f1693f4fb33d54f62bbef19a70a4bc724 Cr-Commit-Position: refs/heads/master@{#424909}

Patch Set 1 #

Patch Set 2 : Tested on various WMs #

Total comments: 15

Patch Set 3 : Changes #

Total comments: 9

Patch Set 4 : use POST_DISPATCH_NONE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -108 lines) Patch
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M ui/base/x/x11_util.h View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M ui/views/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 4 chunks +10 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 5 chunks +74 lines, -47 lines 0 comments Download
A ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.h View 1 chunk +56 lines, -0 lines 0 comments Download
A ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc View 1 2 3 1 chunk +120 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_window_event_filter.h View 2 chunks +0 lines, -6 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_window_event_filter.cc View 1 2 3 4 chunks +14 lines, -51 lines 0 comments Download
M ui/wm/public/window_move_client.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 28 (14 generated)
Tom (Use chromium acct)
erg + sky PTAL erg: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.h ui/views/widget/desktop_aura/x11_window_event_filter.cc ui/views/widget/desktop_aura/x11_window_event_filter.h sky: chrome/browser/ui/views/tabs/tab_drag_controller.cc ui/base/x/x11_util.cc ui/base/x/x11_util.h ...
4 years, 2 months ago (2016-10-12 00:55:19 UTC) #4
sky
+derat for ui/base/x/* https://codereview.chromium.org/2410773002/diff/20001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/2410773002/diff/20001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode420 chrome/browser/ui/views/tabs/tab_drag_controller.cc:420: drag_point_in_screen = start_point_in_screen_; I'm confused by ...
4 years, 2 months ago (2016-10-12 15:58:33 UTC) #6
Daniel Erat
https://codereview.chromium.org/2410773002/diff/20001/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): https://codereview.chromium.org/2410773002/diff/20001/ui/base/x/x11_util.cc#newcode515 ui/base/x/x11_util.cc:515: event.xclient.data.l[4] = 1; nit: add something like "// Requested ...
4 years, 2 months ago (2016-10-12 16:13:10 UTC) #7
Tom (Use chromium acct)
https://codereview.chromium.org/2410773002/diff/20001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): https://codereview.chromium.org/2410773002/diff/20001/chrome/browser/ui/views/tabs/tab_drag_controller.cc#newcode420 chrome/browser/ui/views/tabs/tab_drag_controller.cc:420: drag_point_in_screen = start_point_in_screen_; On 2016/10/12 15:58:33, sky wrote: > ...
4 years, 2 months ago (2016-10-12 18:08:28 UTC) #8
sky
Ok, makes sense. LGTM
4 years, 2 months ago (2016-10-12 19:28:12 UTC) #9
Daniel Erat
thanks, lgtm for ui/base/x11
4 years, 2 months ago (2016-10-12 19:48:02 UTC) #10
Elliot Glaysher
lgtm
4 years, 2 months ago (2016-10-12 19:51:29 UTC) #11
Tom (Use chromium acct)
erg@ I left some comments in x11_desktop_window_move_client_managed.cc Can you take a look at those? https://codereview.chromium.org/2410773002/diff/40001/ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc ...
4 years, 2 months ago (2016-10-12 20:38:08 UTC) #12
Elliot Glaysher
https://codereview.chromium.org/2410773002/diff/40001/ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc File ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc (right): https://codereview.chromium.org/2410773002/diff/40001/ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc#newcode70 ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc:70: return ui::POST_DISPATCH_PERFORM_DEFAULT; On 2016/10/12 20:38:08, Tom Anderson wrote: > ...
4 years, 2 months ago (2016-10-12 20:48:06 UTC) #13
Tom (Use chromium acct)
https://codereview.chromium.org/2410773002/diff/40001/ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc File ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc (right): https://codereview.chromium.org/2410773002/diff/40001/ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc#newcode70 ui/views/widget/desktop_aura/x11_desktop_window_move_client_managed.cc:70: return ui::POST_DISPATCH_PERFORM_DEFAULT; On 2016/10/12 20:48:06, Elliot Glaysher wrote: > ...
4 years, 2 months ago (2016-10-12 22:35:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2410773002/60001
4 years, 2 months ago (2016-10-12 23:41:31 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-12 23:48:00 UTC) #23
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/fbb8975f1693f4fb33d54f62bbef19a70a4bc724 Cr-Commit-Position: refs/heads/master@{#424909}
4 years, 2 months ago (2016-10-12 23:49:45 UTC) #25
Tom Anderson
4 years, 1 month ago (2016-11-01 19:32:42 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2467053002/ by thomasanderson@chromium.org.

The reason for reverting is: Suspecting this is causing 661248, so
conservatively reverting..

Powered by Google App Engine
This is Rietveld 408576698