mirror of
https://github.com/lwouis/alt-tab-macos.git
synced 2026-05-24 11:20:36 +00:00
fix: prevent sheets from messing up thumbnails order (#5346)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user