Merge "Mark window as replacing when moving task to pinned stack."