Fix restoring windows to their previous workspace/virtual desktop.
When session restore rebuilds the session restore commands, it was losing the workspace because it wasn't adding the workspace command to the list of rebuilt commands. This is most noticeable if you have a lot of windows open on different workspaces/virtual desktops. This CL also makes BrowserDesktopWindowTreeHostWin update the workspace on ::Show, if the workspace isn't set. This makes opening a new browser window immediately update the workspace, so it will be restored on session restore without the user having to focus the window. Bug: 1150225 Change-Id: I38ab861147041f4557e5ae8b62ec0c04763f1f4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2585990 Commit-Queue: David Bienvenu <davidbienvenu@chromium.org> Reviewed-by:Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#837137}
Showing
Please register or sign in to comment