mirror of
https://github.com/lwouis/alt-tab-macos.git
synced 2026-05-24 11:20:36 +00:00
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:
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user