From 1e358fda9c16f120c61470c221c6720c80556c30 Mon Sep 17 00:00:00 2001 From: mammo0 Date: Tue, 4 Nov 2025 08:51:47 +0100 Subject: [PATCH] only handle dtp panels in blur_dtp_panels() method -> fixes #785 -> the Main.panel is handled in blur_existing_panels() method --- src/components/panel.js | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/components/panel.js b/src/components/panel.js index a78317cf..f7874935 100644 --- a/src/components/panel.js +++ b/src/components/panel.js @@ -77,6 +77,10 @@ export const PanelBlur = class PanelBlur { // blur already existing ones if (global.dashToPanel.panels) this.blur_dtp_panels(); + + // blur main panel if requested in settings + if (this.settings.dash_to_panel.BLUR_ORIGINAL_PANEL) + this.maybe_blur_panel(Main.panel); } else { // if no dash-to-panel, blur the main and only panel this.maybe_blur_panel(Main.panel); @@ -95,21 +99,12 @@ export const PanelBlur = class PanelBlur { this._log("Blurring Dash to Panel panels after idle."); - // blur every panel found + // blur every panel, except Main.panel (this is handled in blur_existing_panels() method above) global.dashToPanel.panels.forEach(p => { - this.maybe_blur_panel(p.panel); + if (p.panel != Main.panel) + this.maybe_blur_panel(p.panel); }); - - // if main panel is not included in the previous panels, blur it - if ( - !global.dashToPanel.panels - .map(p => p.panel) - .includes(Main.panel) - && - this.settings.dash_to_panel.BLUR_ORIGINAL_PANEL - ) - this.maybe_blur_panel(Main.panel); - + return GLib.SOURCE_REMOVE; }); };