From e3f12e3e23d675a9257e6934597638c245b82563 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 25 Feb 2021 10:35:30 -0300 Subject: [PATCH] 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: --- 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 bf251ba00..f35787a30 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();