Skip to content

Commit 8607c17

Browse files
committed
Try to simply update the entire backgrounds
1 parent 62ce3a1 commit 8607c17

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/components/overview.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ var OverviewBlur = class OverviewBlur {
3838
Main.overview,
3939
'showing',
4040
_ => {
41-
if (GLib.getenv('XDG_SESSION_TYPE') == "wayland" &&
42-
Main.layoutManager.monitors.length > 1) {
43-
this.toogle_actors_visibility();
41+
if (
42+
GLib.getenv('XDG_SESSION_TYPE') == "wayland" &&
43+
Main.layoutManager.monitors.length > 1
44+
) {
45+
this.update_backgrounds();
4446
}
4547
}
4648
);
@@ -211,15 +213,6 @@ var OverviewBlur = class OverviewBlur {
211213
break;
212214
}
213215
}
214-
215-
toogle_actors_visibility() {
216-
Main.layoutManager.overviewGroup.get_children().forEach(child => {
217-
if (child.constructor.name === 'Meta_BackgroundActor') {
218-
child.hide();
219-
setTimeout(_ => child.show(), 10);
220-
}
221-
});
222-
}
223216

224217
set_sigma(s) {
225218
this.effects.forEach(effect => {

0 commit comments

Comments
 (0)