swipe misses focus
This commit is contained in:
@@ -30,6 +30,7 @@ final class PaneFocus {
|
||||
for name in [NSWindow.didBecomeKeyNotification, NSWindow.didResignKeyNotification] {
|
||||
observers.append(center.addObserver(forName: name, object: window, queue: .main) { [weak self] _ in
|
||||
MainActor.assumeIsolated {
|
||||
logFocus(name.rawValue)
|
||||
self?.update()
|
||||
}
|
||||
})
|
||||
@@ -37,6 +38,7 @@ final class PaneFocus {
|
||||
for name in [NSApplication.didBecomeActiveNotification, NSApplication.didResignActiveNotification] {
|
||||
observers.append(center.addObserver(forName: name, object: nil, queue: .main) { [weak self] _ in
|
||||
MainActor.assumeIsolated {
|
||||
logFocus(name.rawValue)
|
||||
self?.update()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user