Upstream version 10.38.217.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / desktop_aura / desktop_window_tree_host_wayland.cc
index 117a872..ad6ba7c 100644 (file)
@@ -457,8 +457,10 @@ void DesktopWindowTreeHostWayland::Minimize() {
 
   state_ |= Minimized;
   previous_bounds_ = bounds_;
+  bounds_ = gfx::Rect();
   ui::WindowStateChangeHandler::GetInstance()->SetWidgetState(window_,
                                                               ui::MINIMIZED);
+  OnHostResized(bounds_.size());
 }
 
 void DesktopWindowTreeHostWayland::Restore() {
@@ -791,6 +793,9 @@ void DesktopWindowTreeHostWayland::HandleWindowResize(unsigned width,
 
 void DesktopWindowTreeHostWayland::HandleWindowUnminimized() {
   state_ &= ~Minimized;
+  bounds_ = previous_bounds_;
+  previous_bounds_ = gfx::Rect();
+  OnHostResized(bounds_.size());
 }
 
 void DesktopWindowTreeHostWayland::HandleCommit(const std::string& text) {