SPM: Fix not painting after activating minimized windows

Minimizing a window triggers the following:
DesktopWindowTreeHostMus::OnWindowTreeHostWindowVisibilityChanged
=> WindowTreeHost::Hide()
=> Compositor::SetVisible(false)

Focusing on a minimized window implicitly unminimizing it. However,
Compositor::SetVisible(true) is not called hence the bug. This CL
adds the call to RestoreToPreminimizedState to fix the issue.

Bug: 942787
Change-Id: I37c7e99ebb01c8eb4cefefcf8c377b2c31c908fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1533151
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Xiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#642910}
2 files changed