From 2a0c11675745b519b766cd6273519b5141b46a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 11 Jul 2020 17:49:04 +0200 Subject: [PATCH] workspace: Reset window opacity after overview transitions When using the fade animation when transitioning to the overview instead of zoom, we fade out all window previews to fully transparent. But after commit 751189253a removed the old _updateWindowPositions() function, nothing resets the opacity again, so when switching from the app- to the window picker, all previews are hidden. Fix this by always resetting the window preview opacity after showing or hiding the overview. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969 --- js/ui/workspace.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/workspace.js b/js/ui/workspace.js index bbf61da33..164084a88 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -1194,10 +1194,12 @@ class Workspace extends St.Widget { _doneLeavingOverview() { this.layout_manager.layout_frozen = false; + this._windows.forEach(w => (w.opacity = 255)); } _doneShowingOverview() { this.layout_manager.layout_frozen = false; + this._windows.forEach(w => (w.opacity = 255)); } _isMyWindow(window) {