[gnome-shell] workspace: Reset window opacity after overview transitions
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspace: Reset window opacity after overview transitions
- Date: Mon, 13 Jul 2020 17:34:37 +0000 (UTC)
commit 2a0c11675745b519b766cd6273519b5141b46a4d
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Jul 11 17:49:04 2020 +0200
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 bbf61da33c..164084a884 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]