From 6b8da9649bce95880a93a11d456c63a0e5b77b88 Mon Sep 17 00:00:00 2001 From: Sergio Costas Rodriguez Date: Sun, 12 May 2024 20:53:17 +0200 Subject: [PATCH] Fix communication with DING The extension state naming has changed from gnome shell 45 to gnome shell 46, so the code to notify margins to DING wasn't being able to detect when an extension was active, and so it didn't prevent to put icons below the dock. This patch fixes it. --- desktopIconsIntegration.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktopIconsIntegration.js b/desktopIconsIntegration.js index e63750136..6412a87b7 100644 --- a/desktopIconsIntegration.js +++ b/desktopIconsIntegration.js @@ -153,7 +153,8 @@ export class DesktopIconsUsableAreaClass { _sendMarginsToExtension(extension) { // check that the extension is an extension that has the logic to accept // working margins - if (extension?.state !== ExtensionUtils.ExtensionState.ENABLED) + if ((extension?.state !== ExtensionUtils.ExtensionState.ENABLED) && + (extension?.state !== ExtensionUtils.ExtensionState.ACTIVE)) return; const usableArea = extension?.stateObj?.DesktopIconsUsableArea;