[gnome-shell] workspacesView: Do not animate primary view geometry when fading
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspacesView: Do not animate primary view geometry when fading
- Date: Tue, 7 Jul 2020 12:07:32 +0000 (UTC)
commit 9297d87775d641955b0e3e5b7885910f5fc0759f
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jul 7 12:57:51 2020 +0200
workspacesView: Do not animate primary view geometry when fading
When going straight to the app picker, we fade in the overview instead
of doing the full-blown zoom transition. In order to keep windows at
their floating position, we must apply the same to the view itself
and not transition to the overview geometry when fading.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353
js/ui/workspacesView.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 82a0822bb4..b16c134379 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -558,7 +558,9 @@ class WorkspacesDisplay extends St.Widget {
animationType = AnimationType.ZOOM;
this._workspacesViews[i].animateToOverview(animationType);
}
- this._syncWorkspacesActualGeometry();
+
+ if (!fadeOnPrimary)
+ this._syncWorkspacesActualGeometry();
}
this._restackedNotifyId =
@@ -586,7 +588,7 @@ class WorkspacesDisplay extends St.Widget {
Main.layoutManager.getWorkAreaForMonitor(primaryIndex);
this._getPrimaryView().ease({
x, y, width, height,
- duration: ANIMATION_TIME,
+ duration: fadeOnPrimary ? 0 : ANIMATION_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]