Index: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
index 5e5cf4a271c6c17bbfea0315b34615bd972c7c66..06dfef585a4dba6a674ccaf14942e43e2b4f02ef 100644 |
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
@@ -433,6 +433,8 @@ void DesktopRootWindowHostWin::ToggleFullScreen() { |
gfx::Rect DesktopRootWindowHostWin::GetBounds() const { |
// Match the logic in HWNDMessageHandler::ClientAreaSizeChanged(). |
+ if (IsMinimized()) |
+ return gfx::Rect(); |
gfx::Rect bounds(WidgetSizeIsClientSize() ? |
message_handler_->GetClientAreaBoundsInScreen() : |
message_handler_->GetWindowBoundsInScreen()); |