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

Issue 2467173002: exo: Fix widget positioning for pop-ups (Closed)

Created:
4 years, 1 month ago by Dominik Laskowski
Modified:
4 years, 1 month ago
Reviewers:
reveman, oshima
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

exo: Fix widget positioning for pop-ups Since the initial bounds of a ShellSurface were relative to the root window, pop-up windows (e.g. context menus in weston-terminal) whose parents are on a secondary display would appear on the primary display. In addition, the initial bounds were not taken into consideration when updating the widget bounds. BUG=631136 TEST=Drag weston-terminal to secondary display and right-click. TEST=No regression for ARC windows. Committed: https://crrev.com/24078fe2e32b15d2a2aacc9785f92d2c5da0d3c4 Cr-Commit-Position: refs/heads/master@{#429720}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -8 lines) Patch
M components/exo/display.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 chunks +10 lines, -3 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
Dominik Laskowski
Split from https://codereview.chromium.org/2396883003/
4 years, 1 month ago (2016-11-02 02:17:10 UTC) #2
reveman
lg, would it be possible to add a simple ShellSurface unit test for this? https://codereview.chromium.org/2467173002/diff/1/components/exo/shell_surface.cc ...
4 years, 1 month ago (2016-11-02 14:24:19 UTC) #7
Dominik Laskowski
Added a unit test. https://codereview.chromium.org/2467173002/diff/1/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2467173002/diff/1/components/exo/shell_surface.cc#newcode1292 components/exo/shell_surface.cc:1292: else { On 2016/11/02 14:24:19, ...
4 years, 1 month ago (2016-11-03 19:56:53 UTC) #9
reveman
Thanks for the test. lgtm
4 years, 1 month ago (2016-11-03 20:17:37 UTC) #11
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/2467173002/20001
4 years, 1 month ago (2016-11-03 22:40:44 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-03 23:12:29 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 23:15:03 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/24078fe2e32b15d2a2aacc9785f92d2c5da0d3c4
Cr-Commit-Position: refs/heads/master@{#429720}

Powered by Google App Engine
This is Rietveld 408576698