From 109f9c879913edb822a1f98dcf1aae277e45f1e5 Mon Sep 17 00:00:00 2001 From: michael starke Date: Wed, 8 Jun 2016 14:17:43 +0200 Subject: [PATCH] Performing autotype to full screen application works properly now (fixes #466) --- MacPass/MPAutotypeDaemon.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MacPass/MPAutotypeDaemon.m b/MacPass/MPAutotypeDaemon.m index a609de0a..27523827 100644 --- a/MacPass/MPAutotypeDaemon.m +++ b/MacPass/MPAutotypeDaemon.m @@ -246,7 +246,7 @@ static MPAutotypeDaemon *_sharedInstance; } - (NSDictionary *)_infoDictionaryForApplication:(NSRunningApplication *)application { - NSArray *currentWindows = CFBridgingRelease(CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly | kCGWindowListExcludeDesktopElements, kCGNullWindowID)); + NSArray *currentWindows = CFBridgingRelease(CGWindowListCopyWindowInfo(kCGWindowListExcludeDesktopElements, kCGNullWindowID)); for(NSDictionary *windowDict in currentWindows) { NSString *windowTitle = windowDict[(NSString *)kCGWindowName]; if(windowTitle.length <= 0) { @@ -315,7 +315,7 @@ static MPAutotypeDaemon *_sharedInstance; if(frontApplication.processIdentifier == processIdentifier) { return NO; } - [runingApplication activateWithOptions:0]; + [runingApplication activateWithOptions:NSApplicationActivateIgnoringOtherApps]; return YES; } - (void)_updateTargetInfoForFrontMostApplication {