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 b1f5ac609277d6e65bb2aabf592f78de3e38ca09..be372b96234b8dc9a93a1c92d6dbe57d68825679 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 |
@@ -500,6 +500,8 @@ void DesktopWindowTreeHostX11::Maximize() { |
SetWMSpecState(true, |
atom_cache_.GetAtom("_NET_WM_STATE_MAXIMIZED_VERT"), |
atom_cache_.GetAtom("_NET_WM_STATE_MAXIMIZED_HORZ")); |
+ if (IsMinimized()) |
+ ShowWindowWithState(ui::SHOW_STATE_NORMAL); |
} |
void DesktopWindowTreeHostX11::Minimize() { |
@@ -511,6 +513,8 @@ void DesktopWindowTreeHostX11::Restore() { |
SetWMSpecState(false, |
atom_cache_.GetAtom("_NET_WM_STATE_MAXIMIZED_VERT"), |
atom_cache_.GetAtom("_NET_WM_STATE_MAXIMIZED_HORZ")); |
+ if (IsMinimized()) |
+ ShowWindowWithState(ui::SHOW_STATE_NORMAL); |
} |
bool DesktopWindowTreeHostX11::IsMaximized() const { |