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

Issue 1811913007: Fix window drawing after snap on Windows 10. (Closed)

Created:
4 years, 9 months ago by jbauman
Modified:
4 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix window drawing after snap on Windows 10. Sometimes during window snap the window will receive WM_WINDOWPOSCHANGING with a new size, but not WM_WINDOWPOSCHANGED. This causes Chrome to avoid drawing to the window because it thinks that might cause the window contents to be stretched. To prevent this post a windows message in the WM_WINDOWPOSCHANGING handler, and if that message is received without a WM_WINDOWPOSCHANGED then re-enable drawing. BUG=562681 Committed: https://crrev.com/96d62242ba604ad301eb29dcb7e9b3e3c21f6aaf Cr-Commit-Position: refs/heads/master@{#409096}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : use PostMessage #

Patch Set 4 : fix signedness #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -9 lines) Patch
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/win/hwnd_message_handler.h View 1 2 3 4 chunks +13 lines, -1 line 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 2 3 chunks +24 lines, -4 lines 1 comment Download
M ui/views/win/hwnd_message_handler_delegate.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
jbauman
4 years, 4 months ago (2016-07-30 01:37:32 UTC) #11
sky
Is it possible we're getting WM_WINDOWPOSCHANGED, but the client area hasn't changed? https://codereview.chromium.org/1811913007/diff/60001/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc ...
4 years, 4 months ago (2016-08-01 15:30:09 UTC) #12
jbauman
On 2016/08/01 15:30:09, sky wrote: > Is it possible we're getting WM_WINDOWPOSCHANGED, but the client ...
4 years, 4 months ago (2016-08-01 19:10:54 UTC) #13
sky
Ok, LGTM
4 years, 4 months ago (2016-08-01 23:00:04 UTC) #14
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/1811913007/60001
4 years, 4 months ago (2016-08-01 23:10:29 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-02 00:02:47 UTC) #18
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 00:07:05 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/96d62242ba604ad301eb29dcb7e9b3e3c21f6aaf
Cr-Commit-Position: refs/heads/master@{#409096}

Powered by Google App Engine
This is Rietveld 408576698