diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 16:00:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 16:00:33 +0000 |
commit | 86575dad63f94a1fb08f370e7b1847b5253159c2 (patch) | |
tree | d3e8d7e4349f63afbac4084fbe21e8b5fff43cf5 /disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js | |
parent | Initial commit. (diff) | |
download | gnome-shell-extensions-extra-86575dad63f94a1fb08f370e7b1847b5253159c2.tar.xz gnome-shell-extensions-extra-86575dad63f94a1fb08f370e7b1847b5253159c2.zip |
Adding disable-workspace-switcher version 2 [8d94260].
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js')
-rw-r--r-- | disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js b/disable-workspace-switcher/disable-workspace-switcher@jbradaric.me/extension.js new file mode 100644 index 0000000..e805c3b --- /dev/null +++ b/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(); +} |