Skip to content

Commit

Permalink
Fix alt-tab
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Apr 6, 2021
1 parent 70a8d3c commit e984676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function init(metadata) {}

function enable() {
// Raise first window on alt-tab
inject(AltTab.AppSwitcherPopup.prototype, "_finish", function() {
inject(AltTab.AppSwitcherPopup.prototype, "_finish", function(timestamp) {
let appIcon = this._items[this._selectedIndex];
if (this._currentWindow < 0)
Main.activateWindow(appIcon.cachedWindows[0], timestamp);
Expand Down

0 comments on commit e984676

Please sign in to comment.