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

Issue 2379063003: Restore maximized window position after detaching display. (Closed)

Created:
4 years, 2 months ago by atimoxin
Modified:
4 years, 2 months ago
Reviewers:
ananta, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restore maximized window position after detaching display. Sometimes Windows incorrectly changes bounds of maximized windows after attaching or detaching additional displays. In this case user can see non-client area of the window (that should be hidden in normal case). This workaround code restores window position if problem occurs. BUG=651449 Committed: https://crrev.com/6bb7f81927671c8616a89ad235d797159724cf09 Cr-Commit-Position: refs/heads/master@{#424123}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Restore maximized window position after detaching display. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -6 lines) Patch
M ui/views/win/hwnd_message_handler.cc View 1 3 chunks +27 lines, -6 lines 2 comments Download

Messages

Total messages: 21 (10 generated)
atimoxin
4 years, 2 months ago (2016-09-29 15:19:17 UTC) #3
sky
+ananta for a second set of eyes, and -sadrul. https://codereview.chromium.org/2379063003/diff/1/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/2379063003/diff/1/ui/views/win/hwnd_message_handler.cc#newcode1635 ui/views/win/hwnd_message_handler.cc:1635: ...
4 years, 2 months ago (2016-09-29 18:16:23 UTC) #5
atimoxin
On 2016/09/29 18:16:23, sky wrote: > +ananta for a second set of eyes, and -sadrul. ...
4 years, 2 months ago (2016-10-06 11:12:11 UTC) #6
sky
LGTM - but wait for Ananta to review.
4 years, 2 months ago (2016-10-06 19:51:38 UTC) #7
ananta
https://codereview.chromium.org/2379063003/diff/20001/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/2379063003/diff/20001/ui/views/win/hwnd_message_handler.cc#newcode2233 ui/views/win/hwnd_message_handler.cc:2233: const bool same_monitor = monitor && (monitor == last_monitor_); ...
4 years, 2 months ago (2016-10-06 19:59:57 UTC) #8
atimoxin
https://codereview.chromium.org/2379063003/diff/20001/ui/views/win/hwnd_message_handler.cc File ui/views/win/hwnd_message_handler.cc (right): https://codereview.chromium.org/2379063003/diff/20001/ui/views/win/hwnd_message_handler.cc#newcode2233 ui/views/win/hwnd_message_handler.cc:2233: const bool same_monitor = monitor && (monitor == last_monitor_); ...
4 years, 2 months ago (2016-10-07 15:27:22 UTC) #9
ananta
lgtm Thanks for checking.
4 years, 2 months ago (2016-10-07 19:39:41 UTC) #10
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/2379063003/20001
4 years, 2 months ago (2016-10-10 09:35:10 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-10 09:40:04 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/6bb7f81927671c8616a89ad235d797159724cf09 Cr-Commit-Position: refs/heads/master@{#424123}
4 years, 2 months ago (2016-10-10 09:41:40 UTC) #20
sky
4 years, 1 month ago (2016-11-07 18:20:15 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2484643003/ by sky@chromium.org.

The reason for reverting is: This resulted in a shortcut to move between
monitors not working. See 656001.
.

Powered by Google App Engine
This is Rietveld 408576698