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 7efa0a51c94b13bc9bfff7028a2c8ce05e995306..531b4881a52f56d1dfe62604a6999364b81b6fd9 100644 |
--- a/ui/views/win/hwnd_message_handler.cc |
+++ b/ui/views/win/hwnd_message_handler.cc |
@@ -1043,11 +1043,11 @@ void HWNDMessageHandler::PostProcessActivateMessage( |
} else if (background_fullscreen_hack_) { |
// Restore the bounds of the window to fullscreen. |
DCHECK(IsFullscreen()); |
- background_fullscreen_hack_ = false; |
MONITORINFO monitor_info = {sizeof(monitor_info)}; |
GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY), |
&monitor_info); |
SetBoundsInternal(gfx::Rect(monitor_info.rcMonitor), false); |
+ background_fullscreen_hack_ = false; |
} |
} |