state_ |= Minimized;
previous_bounds_ = bounds_;
+ bounds_ = gfx::Rect();
ui::WindowStateChangeHandler::GetInstance()->SetWidgetState(window_,
ui::MINIMIZED);
+ OnHostResized(bounds_.size());
}
void DesktopWindowTreeHostWayland::Restore() {
void DesktopWindowTreeHostWayland::HandleWindowUnminimized() {
state_ &= ~Minimized;
+ bounds_ = previous_bounds_;
+ previous_bounds_ = gfx::Rect();
+ OnHostResized(bounds_.size());
}
void DesktopWindowTreeHostWayland::HandleCommit(const std::string& text) {