Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index 1fd497f8b0197acafe82684fec3ffbc2739a1352..f2f7141a81d60de19d892316d344a4966d328406 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -1246,10 +1246,13 @@ void DesktopWindowTreeHostX11::OnWMStateUpdated() { |
// SetBounds() does not work. |
bool is_minimized = IsMinimized(); |
if (is_minimized != was_minimized) { |
- if (is_minimized) |
+ if (is_minimized) { |
+ compositor()->SetBlockDrawing(true); |
content_window_->Hide(); |
- else |
+ } else { |
content_window_->Show(); |
+ compositor()->SetBlockDrawing(false); |
+ } |
} |
if (restored_bounds_.IsEmpty()) { |