diff --git a/src/api-wrappers/AXUIElement.swift b/src/api-wrappers/AXUIElement.swift index c94f5b6a..33c23547 100644 --- a/src/api-wrappers/AXUIElement.swift +++ b/src/api-wrappers/AXUIElement.swift @@ -83,7 +83,10 @@ extension AXUIElement { // debugPrint(runningApp.bundleIdentifier, title, level, CGWindow.normalLevel, subrole, role, size) // Some non-windows have cgWindowId == 0 (e.g. windows of apps starting at login with the checkbox "Hidden" checked) - return wid != 0 && size != nil && ( + return wid != 0 && + // Finder's file copy dialogs are wide but < 100 height (see https://github.com/lwouis/alt-tab-macos/issues/1466) + // Sonoma introduced a bug: a caps-lock indicator shows as a small window. We try to hide it by filtering out tiny windows + size != nil && (size!.width > 100 || size!.height > 100) && ( ( books(runningApp) || keynote(runningApp) ||