Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
# Remove Alt + Tab Delay v2 GNOME Shell Extension (fork)
# Remove Alt + Tab Delay GNOME Shell Extension (fork)

This fork adds support for GNOME 44, as the original repository seems to be inactive.
This fork adds support for GNOME 45, as the original repository seems to be inactive.

## About
Another extension that removes the 0.15 second popup delay in switcher pop-ups.
This extension is actively maintained.
Another extension that removes the 0.15 second popup delay in switcher pop-ups.
This extension is actively maintained.
It fixes at least this known issue: https://gitlab.gnome.org/GNOME/mutter/issues/888.


## Supported GNOME versions
3.26
3.28
3.30
3.32
3.34
3.36
3.38
40
41
42
43
44

## Installation
1. `git clone https://github.com/jirkavrba/remove-alt-tab-delay ~/.local/share/gnome-shell/extensions/[email protected]`
2. Log out and log back in
Expand Down
29 changes: 20 additions & 9 deletions extension.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
const SwitcherPopup = imports.ui.switcherPopup;
import { InjectionManager } from 'resource:///org/gnome/shell/extensions/extension.js';
import * as SwitcherPopup from 'resource:///org/gnome/shell/ui/switcherPopup.js';

function init() {
}
export default class RemoveAltTabDelayExtension {
enable() {
this._injectionManager = new InjectionManager();
this._injectionManager.overrideMethod(
SwitcherPopup.SwitcherPopup.prototype,
'show',
originalMethod => {
return function (...args) {
if (!originalMethod.apply(this, args)) return false;
this._showImmediately();
return true;
};
}
);
}

function enable() {
SwitcherPopup.POPUP_DELAY_TIMEOUT = 0;
disable() {
this._injectionManager.clear();
}
}

function disable() {
SwitcherPopup.POPUP_DELAY_TIMEOUT = 150;
}
19 changes: 3 additions & 16 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
{
"description": "Another extension that removes the 0.15 second popup delay in switcher pop-ups. This extension is actively maintained. It fixes at least this known issue: https://gitlab.gnome.org/GNOME/mutter/issues/888. This extension is a fork of the original with support for GNOME 44.",
"description": "Another extension that removes the 0.15 second popup delay in switcher pop-ups. This extension is actively maintained. It fixes at least this known issue: https://gitlab.gnome.org/GNOME/mutter/issues/888. This extension is a fork of the original with support for GNOME 45.",
"name": "Remove Alt+Tab Delay (fork)",
"shell-version": [
"3.26",
"3.28",
"3.30",
"3.32",
"3.34",
"3.36",
"3.38",
"40",
"41",
"42",
"43",
"44"
],
"shell-version": [ "45" ],
"url": "https://github.com/jirkavrba/remove-alt-tab-delay",
"uuid": "[email protected]",
"version": 1
"version": 2
}
Binary file removed [email protected]
Binary file not shown.