• David Bienvenu's avatar
    Fix restoring windows to their previous workspace/virtual desktop. · a891fb7c
    David Bienvenu authored
    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: default avatarNico Weber <thakis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#837137}
    a891fb7c
session_command.h 2.76 KB