fix: alt-tab preferences panel was sometimes not listed

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-07-18 03:33:49 +09:00
1 parent ce1be11995
commit e25716b38d
1 file changed
+3 -1
+3 -1
View File
@@ -74,7 +74,9 @@ class Window {
}
// we can only detect tabs for windows on the current space, as AXUIElement.windows() only reports current space windows
// also, windows that start in fullscreen will have the wrong spaceID at that point in time, so we check if they are fullscreen too
else if spaceId == Spaces.currentSpaceId {
else if spaceId == Spaces.currentSpaceId &&
// quirk with AltTab listing no windows at first; we force it to false
application.runningApplication.bundleIdentifier != App.id {
isTabbed = true
}
}