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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1696>
This commit is contained in:
parent
a73bea02e8
commit
a2751a1b26
@ -1040,7 +1040,7 @@ var ThumbnailsBox = GObject.registerClass({
|
|||||||
this._thumbnails.push(thumbnail);
|
this._thumbnails.push(thumbnail);
|
||||||
this.add_actor(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
|
// not the initial fill, and not splicing via DND
|
||||||
thumbnail.state = ThumbnailState.NEW;
|
thumbnail.state = ThumbnailState.NEW;
|
||||||
thumbnail.slide_position = 1; // start slid out
|
thumbnail.slide_position = 1; // start slid out
|
||||||
|
Loading…
Reference in New Issue
Block a user