[gnome-shell] workspace: Split preparation steps from zoomFromOverview
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspace: Split preparation steps from zoomFromOverview
- Date: Wed, 3 Feb 2021 20:36:19 +0000 (UTC)
commit 176ea3b1efe57b4ed8652f2f2ab80751307d52d7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jan 1 13:07:06 2021 -0300
workspace: Split preparation steps from zoomFromOverview
Next commit will bind the workspace state adjustment to the snap
adjustment in WorkspacesView, and we'll need the preparation
steps but not the easing of the state adjustment.
Split preparation steps from zoomFromOverview() into a new method
prepareToLeaveOverview().
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1613>
js/ui/workspace.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 8a9faf4ead..38218fc9bd 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1165,7 +1165,7 @@ class Workspace extends St.Widget {
});
}
- zoomFromOverview() {
+ prepareToLeaveOverview() {
for (let i = 0; i < this._windows.length; i++)
this._windows[i].remove_all_transitions();
@@ -1176,6 +1176,10 @@ class Workspace extends St.Widget {
this.layout_manager.layout_frozen = true;
this._overviewHiddenId = Main.overview.connect('hidden', this._doneLeavingOverview.bind(this));
+ }
+
+ zoomFromOverview() {
+ this.prepareToLeaveOverview();
if (this.metaWorkspace !== null && !this.metaWorkspace.active)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]