Skip to content

Commit

Permalink
feat: don't show caps-lock indicator as a window (closes #3171)
Browse files Browse the repository at this point in the history
this is a not a fix: it's a macos bug; we providing a workaround
  • Loading branch information
lwouis committed Jul 14, 2024
1 parent 45f5c53 commit 2e15732
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api-wrappers/AXUIElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 2e15732

Please sign in to comment.