[gnome-shell/wip/exalm/gestures2: 6/10] fixup! workspaceAnimation: Add a background
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/exalm/gestures2: 6/10] fixup! workspaceAnimation: Add a background
- Date: Sat, 18 Jul 2020 14:43:29 +0000 (UTC)
commit 1ef9174782f81156e77db09581eb05fcbed988c0
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sat Jul 18 19:36:51 2020 +0500
fixup! workspaceAnimation: Add a background
js/ui/workspaceAnimation.js | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/workspaceAnimation.js b/js/ui/workspaceAnimation.js
index efb099fbd1..5b89846fa1 100644
--- a/js/ui/workspaceAnimation.js
+++ b/js/ui/workspaceAnimation.js
@@ -189,16 +189,13 @@ var WorkspaceAnimationController = class {
switchData.container = new Clutter.Actor();
switchData.container.add_child(switchData.curGroup);
- switchData.backgrounds = [];
+ switchData.backgroundGroup = new Clutter.Actor();
- for (const monitor of Main.layoutManager.monitors) {
- const background = new MonitorGroup(monitor);
- switchData.backgrounds.push(background);
+ for (const monitor of Main.layoutManager.monitors)
+ switchData.backgroundGroup.add_child(new MonitorGroup(monitor));
- Main.uiGroup.insert_child_above(background, global.window_group);
- }
-
- Main.uiGroup.insert_child_above(switchData.container, switchData.backgrounds[0]);
+ Main.uiGroup.insert_child_above(switchData.backgroundGroup, global.window_group);
+ Main.uiGroup.insert_child_above(switchData.container, switchData.backgroundGroup);
Main.uiGroup.insert_child_above(switchData.movingWindowBin, switchData.container);
for (const dir of Object.values(Meta.MotionDirection)) {
@@ -251,7 +248,7 @@ var WorkspaceAnimationController = class {
switchData.movingWindow = null;
}
- switchData.backgrounds.forEach(bg => bg.destroy());
+ switchData.backgroundGroup.destroy();
switchData.container.destroy();
switchData.movingWindowBin.destroy();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]