Blame SOURCES/0001-layout-Initialize-regions-unconditionally.patch

133977
From d2661753076a60a7981836e4a85e88c4588fb1b2 Mon Sep 17 00:00:00 2001
133977
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
133977
Date: Thu, 17 Nov 2022 15:21:42 +0100
133977
Subject: [PATCH] layout: Initialize regions unconditionally
133977
133977
We currently initialize regions in all code paths except for the
133977
greeter. But while there are no windows on the login screen, the
133977
work area can still be used for positioning, for example for
133977
notifications.
133977
133977
Part-of:
133977
<https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2546>
133977
---
133977
 js/ui/layout.js | 15 +++++++--------
133977
 1 file changed, 7 insertions(+), 8 deletions(-)
133977
133977
diff --git a/js/ui/layout.js b/js/ui/layout.js
133977
index beb4c0a5d..bb51946b7 100644
133977
--- a/js/ui/layout.js
133977
+++ b/js/ui/layout.js
133977
@@ -624,20 +624,19 @@ var LayoutManager = GObject.registerClass({
133977
                                               reactive: true });
133977
         this.addChrome(this._coverPane);
133977
 
133977
+        // Force an update of the regions before we scale the UI group to
133977
+        // get the correct allocation for the struts.
133977
+        // Do this even when we don't animate on restart, so that maximized
133977
+        // windows restore to the right size.
133977
+        this._updateRegions();
133977
+
133977
         if (Meta.is_restart()) {
133977
-            // On restart, we don't do an animation. Force an update of the
133977
-            // regions immediately so that maximized windows restore to the
133977
-            // right size taking struts into account.
133977
-            this._updateRegions();
133977
+            // On restart, we don't do an animation.
133977
         } else if (Main.sessionMode.isGreeter) {
133977
             this.panelBox.translation_y = -this.panelBox.height;
133977
         } else {
133977
             this._updateBackgrounds();
133977
 
133977
-            // We need to force an update of the regions now before we scale
133977
-            // the UI group to get the correct allocation for the struts.
133977
-            this._updateRegions();
133977
-
133977
             this.keyboardBox.hide();
133977
 
133977
             let monitor = this.primaryMonitor;
133977
-- 
133977
2.38.1
133977