feat: don't show caps-lock indicator as a window (closes #3171)

this is a not a fix: it's a macos bug; we providing a workaround
This commit is contained in:
lwouis
2024-07-14 16:14:13 +02:00
parent 45f5c5368a
commit 2e15732f64
+4 -1
View File
@@ -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) ||