From f4f7d9addcbef3f12ee70e99c16e06eea49381df Mon Sep 17 00:00:00 2001 From: Yaros Date: Sat, 29 Mar 2025 12:06:29 +0100 Subject: [PATCH] fix: language switcher picked up as window --- src/api-wrappers/AXUIElement.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api-wrappers/AXUIElement.swift b/src/api-wrappers/AXUIElement.swift index 398b388a..f4074e5e 100644 --- a/src/api-wrappers/AXUIElement.swift +++ b/src/api-wrappers/AXUIElement.swift @@ -238,8 +238,9 @@ extension AXUIElement { // Some non-windows have cgWindowId == 0 (e.g. windows of apps starting at login with the checkbox "Hidden" checked) 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) && ( + // Sonoma introduced a bug: a caps-lock & language indicators shows as a small window. + // We try to hide it by filtering out tiny windows + && size != nil && (size!.width > 100 && size!.height > 50) && ( ( books(app) || keynote(app) ||