[gnome-shell] workspacesView: Decouple syncing geometry from updating views
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspacesView: Decouple syncing geometry from updating views
- Date: Tue, 7 Jul 2020 12:07:22 +0000 (UTC)
commit 30ff76272e38089cfe42703c6f1b622687b897e5
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jul 7 13:23:50 2020 +0200
workspacesView: Decouple syncing geometry from updating views
This gives us more control over when the geometry is synced. We
will soon use that to keep the primary view at the work area
geometry while fading to the overview.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353
js/ui/workspacesView.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index ea5156836b..0096b872b8 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -555,6 +555,7 @@ class WorkspacesDisplay extends St.Widget {
animationType = AnimationType.ZOOM;
this._workspacesViews[i].animateToOverview(animationType);
}
+ this._syncWorkspacesActualGeometry();
}
this._restackedNotifyId =
@@ -614,6 +615,7 @@ class WorkspacesDisplay extends St.Widget {
return;
this._updateWorkspacesViews();
+ this._syncWorkspacesActualGeometry();
}
_updateWorkspacesViews() {
@@ -633,9 +635,6 @@ class WorkspacesDisplay extends St.Widget {
this._workspacesViews.push(view);
Main.layoutManager.overviewGroup.add_actor(view);
}
-
- if (this._actualGeometry)
- this._syncWorkspacesActualGeometry();
}
_getMonitorIndexForEvent(event) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]