alternate-tab: destroy the object if there is no window
We cannot return from show() without creating an AppSwitcher, as it will subsequently crash in core shell code due to _appSwitcher being null. We can prevent this by destroying the actor (which will prevent it from being allocated and thus avoid the crash).
This commit is contained in:
@@ -403,8 +403,10 @@ AltTabPopup2.prototype = {
|
||||
}
|
||||
}
|
||||
|
||||
if (!windows.length)
|
||||
if (!windows.length) {
|
||||
this.destroy();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!Main.pushModal(this.actor)) {
|
||||
// Probably someone else has a pointer grab, try again with keyboard only
|
||||
|
||||
Reference in New Issue
Block a user