Adding disable-workspace-switcher version 2 [8d94260].
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
edf3c62a6f
commit
278d844aed
4 changed files with 707 additions and 0 deletions
|
@ -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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue