[gnome-shell] workspace: Always start in FLOATING state



commit 14cfd74f08f9ca104c52ffbf579d898d88993ce8
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jul 7 12:44:50 2020 +0200

    workspace: Always start in FLOATING state
    
    It doesn't matter which animation we use to enter the overview,
    we always want to start and end with the floating layout.
    
    The simplest way to achieve that is by creating the state adjustment
    with the correct value in the first place.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353

 js/ui/workspace.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index e1b9b003ee..12c4a39bef 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -411,7 +411,7 @@ var WorkspaceLayout = GObject.registerClass({
         this._layout = null;
 
         this._stateAdjustment = new St.Adjustment({
-            value: 1,
+            value: 0,
             lower: 0,
             upper: 1,
         });
@@ -1135,7 +1135,6 @@ class Workspace extends St.Widget {
             this.metaWorkspace === null || this.metaWorkspace.active;
 
         const adj = this.layout_manager.stateAdjustment;
-        adj.value = 0;
         adj.ease(1, {
             duration: animate ? Overview.ANIMATION_TIME : 0,
             mode: Clutter.AnimationMode.EASE_OUT_QUAD,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]