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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 2454053004: Don't apply maximized window bounds workaround if bounds aren't changed (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index d76b81105244b354ed544e2d22b975de2169d27e..ccbef0e8d2da1bd5e8319dd47b834860453d9a38 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -2249,6 +2249,8 @@ void HWNDMessageHandler::OnWindowPosChanging(WINDOWPOS* window_pos) {
// We should restore window position if problem occurs.
const bool incorrect_maximized_bounds =
IsMaximized() &&
+ !(window_pos->flags & SWP_NOMOVE) &&
+ !(window_pos->flags & SWP_NOSIZE) &&
(expected_maximized_bounds.x() != window_pos->x ||
expected_maximized_bounds.y() != window_pos->y ||
expected_maximized_bounds.width() != window_pos->cx ||
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698