diff --git a/src/logic/Application.swift b/src/logic/Application.swift index 933156e6b..8327297a0 100644 --- a/src/logic/Application.swift +++ b/src/logic/Application.swift @@ -117,6 +117,11 @@ class Application: NSObject { if group == nil && !self.wasLaunchedBeforeAltTab && CGSSpaceGetType(cgsMainConnectionId, Spaces.currentSpaceId) == .fullscreen { throw AxError.runtimeError } + // workaround: sometimes some apps are launched and are actived but OS returns the windows.count == 0. we wait for a moment + // for example: Bear.app + if group == nil && !self.wasLaunchedBeforeAltTab && self.runningApplication.isActive { + throw AxError.runtimeError + } } } }