[gnome-shell/wip/exalm/gestures2: 5/9] workspaceAnimation: Add a background



commit f9edd2bde5658113fef186ef8183c157d26ff153
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Thu Jul 16 15:40:13 2020 +0500

    workspaceAnimation: Add a background
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1326

 js/ui/workspaceAnimation.js | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/workspaceAnimation.js b/js/ui/workspaceAnimation.js
index 0a0c498794..36f7bcb60b 100644
--- a/js/ui/workspaceAnimation.js
+++ b/js/ui/workspaceAnimation.js
@@ -3,6 +3,7 @@
 
 const { Clutter, GObject, Meta, Shell } = imports.gi;
 
+const Background = imports.ui.background;
 const Main = imports.ui.main;
 const SwipeTracker = imports.ui.swipeTracker;
 
@@ -168,7 +169,10 @@ var WorkspaceAnimationController = class {
         switchData.container = new Clutter.Actor();
         switchData.container.add_child(switchData.curGroup);
 
-        Main.uiGroup.insert_child_above(switchData.container, global.window_group);
+        switchData.background = new Meta.BackgroundGroup();
+
+        Main.uiGroup.insert_child_above(switchData.background, global.window_group);
+        Main.uiGroup.insert_child_above(switchData.container, switchData.background);
         Main.uiGroup.insert_child_above(switchData.movingWindowBin, switchData.container);
 
         for (const dir of Object.values(Meta.MotionDirection)) {
@@ -212,6 +216,11 @@ var WorkspaceAnimationController = class {
                 switchData.movingWindow = null;
             });
         }
+
+        switchData.bgManager = new Background.BackgroundManager({
+            container: switchData.background,
+            monitorIndex: Main.layoutManager.primaryIndex,
+        });
     }
 
     _finishWorkspaceSwitch(switchData) {
@@ -226,6 +235,7 @@ var WorkspaceAnimationController = class {
             switchData.movingWindow = null;
         }
 
+        switchData.background.destroy();
         switchData.container.destroy();
         switchData.movingWindowBin.destroy();
 


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