From 58c7192a9c91077cef11d09f9557f3710aaa0c3a Mon Sep 17 00:00:00 2001 From: talhaali5365 Date: Sat, 11 Apr 2026 12:26:18 +0500 Subject: [PATCH] refactor: remove unused Config import and update ignoreRelease call (gnome 50) --- dock.js | 6 ------ dockItems.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/dock.js b/dock.js index 4a20a0a..32a0350 100644 --- a/dock.js +++ b/dock.js @@ -2,7 +2,6 @@ import * as Main from 'resource:///org/gnome/shell/ui/main.js'; import * as Fav from 'resource:///org/gnome/shell/ui/appFavorites.js'; -import * as Config from 'resource:///org/gnome/shell/misc/config.js'; import Shell from 'gi://Shell'; import GObject from 'gi://GObject'; @@ -424,21 +423,16 @@ export let Dock = GObject.registerClass( Main.layoutManager.addChrome(this.struts, { affectsStruts: !this.extension.autohide_dash, - ...(Config.PACKAGE_VERSION[0] == '4' - ? { affectsInputRegion: true } - : {}), trackFullscreen: false, }); Main.layoutManager.addChrome(this, { affectsStruts: false, - // affectsInputRegion: false, trackFullscreen: true, }); Main.layoutManager.addChrome(this.dwell, { affectsStruts: false, - // affectsInputRegion: false, trackFullscreen: false, }); diff --git a/dockItems.js b/dockItems.js index db66ad3..0f0711e 100644 --- a/dockItems.js +++ b/dockItems.js @@ -60,7 +60,7 @@ class DockItemMenu extends PopupMenu.PopupMenu { popup() { this.open(BoxPointer.PopupAnimation.FULL); - this._menuManager.ignoreRelease(); + this._menuManager.ignoreRelease?.(); } }