[gnome-shell/wip/exalm/gestures2: 4/9] workspaceAnimation: Add to uiGroup insead of window_group



commit 322c2b9ebb1453779de5ab00574ab7943b5f35d1
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Thu Jul 16 15:31:36 2020 +0500

    workspaceAnimation: Add to uiGroup insead of window_group
    
    This will allow to hide window group completely in the following commits.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1326

 js/ui/workspaceAnimation.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/workspaceAnimation.js b/js/ui/workspaceAnimation.js
index 770d5f229d..0a0c498794 100644
--- a/js/ui/workspaceAnimation.js
+++ b/js/ui/workspaceAnimation.js
@@ -152,7 +152,6 @@ var WorkspaceAnimationController = class {
         if (this._switchData)
             return;
 
-        const wgroup = global.window_group;
         const workspaceManager = global.workspace_manager;
         const curWs = workspaceManager.get_workspace_by_index(from);
 
@@ -169,8 +168,8 @@ var WorkspaceAnimationController = class {
         switchData.container = new Clutter.Actor();
         switchData.container.add_child(switchData.curGroup);
 
-        wgroup.add_child(switchData.movingWindowBin);
-        wgroup.add_child(switchData.container);
+        Main.uiGroup.insert_child_above(switchData.container, global.window_group);
+        Main.uiGroup.insert_child_above(switchData.movingWindowBin, switchData.container);
 
         for (const dir of Object.values(Meta.MotionDirection)) {
             let ws = null;
@@ -199,8 +198,6 @@ var WorkspaceAnimationController = class {
             info.actor.set_position(x, y);
         }
 
-        wgroup.set_child_above_sibling(switchData.movingWindowBin, null);
-
         if (this.movingWindow) {
             const windowActor = this.movingWindow.get_compositor_private();
 


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