Skip to content

Commit

Permalink
Try to fix #94
Browse files Browse the repository at this point in the history
  • Loading branch information
aunetx committed May 29, 2022
1 parent ee2d194 commit 22967cd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ var OverviewBlur = class OverviewBlur {
}
);

// connect to the overview being opened (fix a bug with blur being gray
// with multipe monitors under wayland)
this.connections.connect(
Main.overview,
'showing',
_ => {
if (GLib.getenv('XDG_SESSION_TYPE') == "wayland" &&
Main.layoutManager.monitors.length > 1) {
this.repaint_blur_effects();
}
}
);

// connect to monitors change
this.connections.connect(
Main.layoutManager,
Expand Down Expand Up @@ -199,6 +212,12 @@ var OverviewBlur = class OverviewBlur {
}
}

repaint_blur_effects() {
this.effects.forEach(effect => {
effect.blur_effect.queue_repaint();
});
}

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

0 comments on commit 22967cd

Please sign in to comment.