Performing autotype to full screen application works properly now (fixes #466)

This commit is contained in:
michael starke
2016-06-08 14:17:43 +02:00
parent 3ba98d2d00
commit 109f9c8799

View File

@@ -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 {