From 202aca7bf4eb4927658b82b627afb9dab254a551 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 10 Dec 2023 15:37:46 +0100 Subject: Merging upstream version 20231210. Signed-off-by: Daniel Baumann --- .../extension.js | 21 +++++++++++++++++++++ .../metadata.json | 12 ++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 extensions/44/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js create mode 100644 extensions/44/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json (limited to 'extensions/44/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me') diff --git a/extensions/44/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js b/extensions/44/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js new file mode 100644 index 0000000..e805c3b --- /dev/null +++ b/extensions/44/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js @@ -0,0 +1,21 @@ +'use strict' + +const WorkspaceSwitcherPopup = imports.ui.workspaceSwitcherPopup.WorkspaceSwitcherPopup; + +class Extension { + constructor() { + this.originalWorkspaceSwitcherPopup_display = WorkspaceSwitcherPopup.prototype.display; + } + + enable() { + WorkspaceSwitcherPopup.prototype.display = () => {}; + } + + disable() { + WorkspaceSwitcherPopup.prototype.display = this.originalWorkspaceSwitcherPopup_display; + } +} + +function init() { + return new Extension(); +} diff --git a/extensions/44/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json b/extensions/44/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json new file mode 100644 index 0000000..68f10c5 --- /dev/null +++ b/extensions/44/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/metadata.json @@ -0,0 +1,12 @@ +{ + "name": "Disable Workspace Switcher", + "description": "Disable the workspace switcher popup.", + "version": 1, + "uuid": "disable-workspace-switcher@jbradaric.me", + "url": "https://github.com/jbradaric/disable-workspace-switcher", + "shell-version": [ + "42", + "43", + "44" + ] +} -- cgit v1.2.3