[gnome-shell/wip/jimmac/dash-icon-spacing: 24/72] workspace: Split preparation steps from zoomFromOverview
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/jimmac/dash-icon-spacing: 24/72] workspace: Split preparation steps from zoomFromOverview
- Date: Tue, 2 Feb 2021 11:58:18 +0000 (UTC)
commit 50da04cb355320c14f020d84d4d729a042ff2bbb
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().
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 21b45865bb..76ed4717b4 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1236,7 +1236,7 @@ class Workspace extends St.Widget {
});
}
- zoomFromOverview() {
+ prepareToLeaveOverview() {
for (let i = 0; i < this._windows.length; i++)
this._windows[i].remove_all_transitions();
@@ -1247,6 +1247,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]