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

Issue 985993002: linux/x11: Fix setting custom window shapes in High DPI. (Closed)

Created:
5 years, 9 months ago by sadrul
Modified:
5 years, 9 months ago
Reviewers:
pkotwicz
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

linux/x11: Fix setting custom window shapes in High DPI. Chrome Apps (e.g. hangouts etc.) can set a custom shape for the windows. Make sure the shape is translated correctly in hidpi environment. BUG=461120 R=pkotwicz@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/07bd36abf92fd84bffd6f2d8feb4532dfb77901a

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 1 chunk +14 lines, -1 line 0 comments Download

Messages

Total messages: 8 (1 generated)
sadrul
5 years, 9 months ago (2015-03-08 02:27:37 UTC) #2
pkotwicz
LGTM https://codereview.chromium.org/985993002/diff/1/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/985993002/diff/1/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode503 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:503: } Move "window_shape_ = gfx::CreateRegionFromSkRegion(*native_region);" to an else ...
5 years, 9 months ago (2015-03-08 23:33:27 UTC) #3
pkotwicz
https://codereview.chromium.org/985993002/diff/1/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/985993002/diff/1/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode502 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:502: } I getBoundaryPath() returns false, you can just do ...
5 years, 9 months ago (2015-03-08 23:44:58 UTC) #4
pkotwicz
If getBoundaryPath() returns false, you can just do "window_shape_ = XCreateRegion()". Alternatively, you can check ...
5 years, 9 months ago (2015-03-08 23:45:23 UTC) #5
sadrul
On 2015/03/08 23:45:23, pkotwicz wrote: > If getBoundaryPath() returns false, you can just do "window_shape_ ...
5 years, 9 months ago (2015-03-09 17:20:10 UTC) #6
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/07bd36abf92fd84bffd6f2d8feb4532dfb77901a Cr-Commit-Position: refs/heads/master@{#319695}
5 years, 9 months ago (2015-03-09 18:29:03 UTC) #7
sadrul
5 years, 9 months ago (2015-03-09 18:29:17 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
07bd36abf92fd84bffd6f2d8feb4532dfb77901a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698