diff options
-rw-r--r-- | ui/aura/root_window_host_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/aura/root_window_host_win.cc b/ui/aura/root_window_host_win.cc index df387cf..d000bd8 100644 --- a/ui/aura/root_window_host_win.cc +++ b/ui/aura/root_window_host_win.cc @@ -82,12 +82,12 @@ void RootWindowHostWin::ToggleFullScreen() { MONITORINFO mi; mi.cbSize = sizeof(mi); GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTONEAREST), &mi); - target_rect = mi.rcMonitor; + target_rect = gfx::Rect(mi.rcMonitor); } else { fullscreen_ = false; SetWindowLong(hwnd(), GWL_STYLE, saved_window_style_); SetWindowLong(hwnd(), GWL_EXSTYLE, saved_window_ex_style_); - target_rect = saved_window_rect_; + target_rect = gfx::Rect(saved_window_rect_); } SetWindowPos(hwnd(), NULL, |