Skip to content

Commit

Permalink
[Locked Fullscreen] Properly set window bounds for pinned windows
Browse files Browse the repository at this point in the history
There was a bug in locked fullscreen where docked magnifier mode wasn't properly
cleaning up after being closed - the pinned (fullscreen) window wasn't being
restored to it's full height (it kept the smaller height into which the docked
magnifier pushed it).

Bug: 901485
Change-Id: I4121444506a0da349f8a1ea300c225a7c32b434d
Reviewed-on: https://chromium-review.googlesource.com/c/1454629
Auto-Submit: Ivan Šandrk <isandrk@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Commit-Queue: Ivan Šandrk <isandrk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629581}
  • Loading branch information
Ivan Sandrk authored and Commit Bot committed Feb 6, 2019
1 parent a4b37d6 commit 196e39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ash/wm/default_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ bool DefaultState::SetMaximizedOrFullscreenBounds(WindowState* window_state) {
screen_util::GetMaximizedWindowBoundsInParent(window_state->window()));
return true;
}
if (window_state->IsFullscreen()) {
if (window_state->IsFullscreen() || window_state->IsPinned()) {
window_state->SetBoundsDirect(
screen_util::GetDisplayBoundsInParent(window_state->window()));
return true;
Expand Down

0 comments on commit 196e39c

Please sign in to comment.