Commit c3d12130 authored by Avery Musbach's avatar Avery Musbach Committed by Commit Bot

overview: Update snap preview in split view as screen rotates

When you are dragging from overview in split view and you rotate the
screen while a snap preview is shown, the bounds of the snap preview
shall update for the new screen orientation.

Test: manual
Bug: 1011391
Change-Id: I21f6946d7e31bd19551a69b28126e9af2f443c58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1842171Reviewed-by: default avatarSammie Quon <sammiequon@chromium.org>
Commit-Queue: Avery Musbach <amusbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702957}
parent ff80dc66
......@@ -802,6 +802,9 @@ void OverviewSession::OnDisplayRemoved(const display::Display& display) {
void OverviewSession::OnDisplayMetricsChanged(const display::Display& display,
uint32_t metrics) {
if (split_view_drag_indicators_)
split_view_drag_indicators_->OnDisplayBoundsChanged();
// For metrics changes that happen when the split view mode is active, the
// display bounds will be adjusted in OnSplitViewDividerPositionChanged().
if (Shell::Get()->split_view_controller()->InSplitViewMode())
......@@ -1082,8 +1085,6 @@ void OverviewSession::OnDisplayBoundsChanged() {
/*ignored_items=*/{}, /*animate=*/false);
}
UpdateNoWindowsWidget();
if (split_view_drag_indicators_)
split_view_drag_indicators_->OnDisplayBoundsChanged();
}
void OverviewSession::UpdateNoWindowsWidget() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment