From 10292c6b5a23cb783f3dcebd60347e7cf569f444 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Thu, 14 Nov 2024 19:00:43 +0100 Subject: [PATCH] Update the curved mode on exiting fullscreen 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. --- .../shared/com/igalia/wolvic/ui/widgets/Windows.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/common/shared/com/igalia/wolvic/ui/widgets/Windows.java b/app/src/common/shared/com/igalia/wolvic/ui/widgets/Windows.java index 75be9a4b96..86f8d160c6 100644 --- a/app/src/common/shared/com/igalia/wolvic/ui/widgets/Windows.java +++ b/app/src/common/shared/com/igalia/wolvic/ui/widgets/Windows.java @@ -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