From a2751a1b2648946d7046d076047ab6dad3c55d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 16 Feb 2021 22:33:28 +0100 Subject: [PATCH] workspaceThumbnails: Don't animate thumbnail additions while hidden This is not just an obvious mini-optimization, it also ensures that we don't start showing the minimap with an ongoing thumbnail transition. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3739 Part-of: --- js/ui/workspaceThumbnail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index e84764842..b06e60209 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -1040,7 +1040,7 @@ var ThumbnailsBox = GObject.registerClass({ this._thumbnails.push(thumbnail); this.add_actor(thumbnail); - if (start > 0 && this._spliceIndex == -1) { + if (this._shouldShow && start > 0 && this._spliceIndex === -1) { // not the initial fill, and not splicing via DND thumbnail.state = ThumbnailState.NEW; thumbnail.slide_position = 1; // start slid out