Skip to content

Commit

Permalink
Merge pull request #166 from dsheeler/support-gnome-42
Browse files Browse the repository at this point in the history
Fix call to popModal.
  • Loading branch information
p91paul authored Apr 11, 2022
2 parents b62bb52 + ffd2f37 commit 35218f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CoverflowAltTab@dmo60.de/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"description": "Replacement of Alt-Tab, iterates through windows in a cover-flow manner.",
"shell-version": [
"40", "41"
"42"

],
"dangerous": false,
"name": "Coverflow Alt-Tab",
Expand Down
5 changes: 3 additions & 2 deletions CoverflowAltTab@dmo60.de/switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ var Switcher = class Switcher {

Main.uiGroup.add_actor(this.actor);

if (!Main.pushModal(this.actor)) {
this.grab = Main.pushModal(this.actor)
if (!this.grab) {
this._activateSelected();
return;
}
Expand Down Expand Up @@ -517,7 +518,7 @@ var Switcher = class Switcher {
this._numPreviewsComplete += 1;
if (this._numPreviewsComplete >= this._previews.length) {
if (this._haveModal) {
Main.popModal(this.actor);
Main.popModal(this.grab);
this._haveModal = false;
}

Expand Down
2 changes: 1 addition & 1 deletion CoverflowAltTab@palatis.blogspot.com/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"shell-version": ["40","41"],
"shell-version": ["42"],
"uuid": "CoverflowAltTab@palatis.blogspot.com",
"name": "Coverflow Alt-Tab",
"description": "Replacement of Alt-Tab, iterates through windows in a cover-flow manner.",
Expand Down

0 comments on commit 35218f1

Please sign in to comment.