Don't show window on next commit if it's minimized

When a shell surface is created, pending_show_state_ is always set
to true and Show() is called on the next commit, but this shouldn't
happen when the shell surface is created with its show state
MINIMIZED. This happens when a window enters PIP via minimize. A
new task is created and the PIP activity is moved to the task, but
when the task is created, it's still in a minimized stack.

automatically which is created with its show state minimized.

Bug: b/130125505
Test: Confirmed Chrome didn't try to unminimize a window
Change-Id: If9fe36a46c6ad216d137caed30f1b640628f9069
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1573432
Reviewed-by: Mitsuru Oshima (Slow 4/22-26) <oshima@chromium.org>
Commit-Queue: Kazuki Takise <takise@chromium.org>
Auto-Submit: Kazuki Takise <takise@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652811}
1 file changed