fix: prevent sheets from messing up thumbnails order (#5346)

This commit is contained in:
lwouis
2026-03-15 15:19:38 +01:00
parent de9aaa1fc1
commit b008d63928
+1 -1
View File
@@ -105,7 +105,7 @@ class AccessibilityEvents {
let findOrCreate = Windows.findOrCreate(element, wid, app, level, a.title, a.subrole, a.role, a.size, a.position, a.isFullscreen, a.isMinimized)
guard let window = findOrCreate.0 else {
// we don't know this window, but it got focused, so let's update app.focusedWindow with nil
if type == kAXFocusedWindowChangedNotification {
if type == kAXFocusedWindowChangedNotification && a.role != kAXSheetRole {
app.focusedWindow = nil
}
return