[gnome-shell/gbsneto/40-stuff: 26/68] workspace: Split preparation steps from zoomFromOverview
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/40-stuff: 26/68] workspace: Split preparation steps from zoomFromOverview
- Date: Wed, 20 Jan 2021 22:41:07 +0000 (UTC)
commit fe6dc1dc5c0c4f4b59a8c22f587676b6ff8ee9d9
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]