summaryrefslogtreecommitdiffstats
path: root/extensions/46/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 06:09:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 06:09:58 +0000
commit37c8b5f807a255fe687af72d36717cc0054e0728 (patch)
treedb1f3f4416b2ac810e89d2d8dd6e0d9867546e1b /extensions/46/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js
parentAdding gnome-shell version 46 in 45/disable-workspace-switcher metadata.json. (diff)
downloadgnome-shell-extensions-extra-37c8b5f807a255fe687af72d36717cc0054e0728.tar.xz
gnome-shell-extensions-extra-37c8b5f807a255fe687af72d36717cc0054e0728.zip
Renaming extensions subdirectory for GNOME 46.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'extensions/46/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js')
-rw-r--r--extensions/46/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/extensions/46/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js b/extensions/46/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js
new file mode 100644
index 0000000..a814f54
--- /dev/null
+++ b/extensions/46/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js
@@ -0,0 +1,14 @@
+import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js';
+import { WorkspaceSwitcherPopup } from 'resource:///org/gnome/shell/ui/workspaceSwitcherPopup.js';
+
+export default class extends Extension {
+ enable() {
+ this._originalWorkspaceSwitcherPopup_display = WorkspaceSwitcherPopup.prototype.display;
+ WorkspaceSwitcherPopup.prototype.display = () => {};
+ }
+
+ disable() {
+ WorkspaceSwitcherPopup.prototype.display = this._originalWorkspaceSwitcherPopup_display;
+ this._originalWorkspaceSwitcherPopup_display = null;
+ }
+}