Skip to content

Commit

Permalink
Update the curved mode on exiting fullscreen
Browse files Browse the repository at this point in the history
Window view model's isCurved property was not properly updated when
exiting fullscreen. When entering fullscreen it's updated because
placeWindow() is called. However on unfullscreen placeWindow() is
not called so the isCurved property was not updated. The solution
is to call updateCurvedMode when entering/exiting fullscreen.
  • Loading branch information
svillar committed Nov 28, 2024
1 parent e3bbbf9 commit 10292c6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/src/common/shared/com/igalia/wolvic/ui/widgets/Windows.java
Original file line number Diff line number Diff line change
Expand Up @@ -1388,17 +1388,18 @@ public void onContentFullScreen(@NonNull WindowWidget aWindow, boolean aFullScre
for (WindowWidget win: getCurrentWindows()) {
setWindowVisible(win, win == mFullscreenWindow);
}
updateMaxWindowScales();
updateViews();
} else if (mFullscreenWindow != null) {
} else {
if (mFullscreenWindow == null)
return;
aWindow.restoreBeforeFullscreenPlacement();
mFullscreenWindow = null;
for (WindowWidget win : getCurrentWindows()) {
setWindowVisible(win, true);
}
updateMaxWindowScales();
updateViews();
}
updateMaxWindowScales();
updateCurvedMode(true);

}

@Override
Expand Down

0 comments on commit 10292c6

Please sign in to comment.