[gnome-shell] layout: Update workspace struts even while starting up



commit e3f12e3e23d675a9257e6934597638c245b82563
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Feb 25 10:35:30 2021 -0300

    layout: Update workspace struts even while starting up
    
    We want to avoid updating the input region on startup, since it incurs
    in roundtrips to the X server, but not workspaces struts, since they
    affect the visible clip of wallpapers in the workspace. Since next
    commits will make the overview be the after-boot screen, we really
    don't want the wallpaper to be clipped wrongly.
    
    Allow updating regions while starting up, but only workspace struts.
    Make sure input is not updated by accounting for 'this._startingUp'
    on 'wantsInputRegion'.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1678>

 js/ui/layout.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index bf251ba000..f35787a304 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -918,9 +918,6 @@ var LayoutManager = GObject.registerClass({
     }
 
     _queueUpdateRegions() {
-        if (this._startingUp)
-            return;
-
         if (!this._updateRegionIdle) {
             this._updateRegionIdle = Meta.later_add(Meta.LaterType.BEFORE_REDRAW,
                                                     this._updateRegions.bind(this));
@@ -960,6 +957,7 @@ var LayoutManager = GObject.registerClass({
         let rects = [], struts = [], i;
         let isPopupMenuVisible = global.top_window_group.get_children().some(isPopupMetaWindow);
         const wantsInputRegion =
+            !this._startingUp &&
             !isPopupMenuVisible &&
             Main.modalCount === 0 &&
             !Meta.is_wayland_compositor();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]