Skip to content

Commit

Permalink
Try to simply update the entire backgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
aunetx committed Jun 4, 2022
1 parent 62ce3a1 commit 8607c17
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/components/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ var OverviewBlur = class OverviewBlur {
Main.overview,
'showing',
_ => {
if (GLib.getenv('XDG_SESSION_TYPE') == "wayland" &&
Main.layoutManager.monitors.length > 1) {
this.toogle_actors_visibility();
if (
GLib.getenv('XDG_SESSION_TYPE') == "wayland" &&
Main.layoutManager.monitors.length > 1
) {
this.update_backgrounds();
}
}
);
Expand Down Expand Up @@ -211,15 +213,6 @@ var OverviewBlur = class OverviewBlur {
break;
}
}

toogle_actors_visibility() {
Main.layoutManager.overviewGroup.get_children().forEach(child => {
if (child.constructor.name === 'Meta_BackgroundActor') {
child.hide();
setTimeout(_ => child.show(), 10);
}
});
}

set_sigma(s) {
this.effects.forEach(effect => {
Expand Down

0 comments on commit 8607c17

Please sign in to comment.