XDG-shell: Minimize works once only #258
Description
When using xdg shell, minimize works only once but not twice.
More specifically, if the user click/tap in the minimize icon of content_shell and then bring it back using super+tab, the next time minimize won't simply work.
The problem is in ui/desktop_aura/desktop_window_tree_host_wayland.cc. When click happens in minimize icon, Chromium code dispatches an event that will trigger views::DesktopWindowTreeHostWayland::Minimize(), consequently forward to GPU process a WLShellSurface::Minimize(). After going through the (Wayland) wire, Weston hides the window and the world is perfect. But when Weston triggers a switch back event (super+tab) to the client, nothing will be triggered in Chromium/Ozone-Wayland side to restore the visibility state again; it still thinks that the client is hidden. So we need to see what kind of method in DesktopWindowTreeHostWayland is called when this happen and fix the state_ flag behavior.