mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 17:32:17 +00:00
Performing autotype to full screen application works properly now (fixes #466)
This commit is contained in:
@@ -246,7 +246,7 @@ static MPAutotypeDaemon *_sharedInstance;
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSDictionary *)_infoDictionaryForApplication:(NSRunningApplication *)application {
|
- (NSDictionary *)_infoDictionaryForApplication:(NSRunningApplication *)application {
|
||||||
NSArray *currentWindows = CFBridgingRelease(CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly | kCGWindowListExcludeDesktopElements, kCGNullWindowID));
|
NSArray *currentWindows = CFBridgingRelease(CGWindowListCopyWindowInfo(kCGWindowListExcludeDesktopElements, kCGNullWindowID));
|
||||||
for(NSDictionary *windowDict in currentWindows) {
|
for(NSDictionary *windowDict in currentWindows) {
|
||||||
NSString *windowTitle = windowDict[(NSString *)kCGWindowName];
|
NSString *windowTitle = windowDict[(NSString *)kCGWindowName];
|
||||||
if(windowTitle.length <= 0) {
|
if(windowTitle.length <= 0) {
|
||||||
@@ -315,7 +315,7 @@ static MPAutotypeDaemon *_sharedInstance;
|
|||||||
if(frontApplication.processIdentifier == processIdentifier) {
|
if(frontApplication.processIdentifier == processIdentifier) {
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
[runingApplication activateWithOptions:0];
|
[runingApplication activateWithOptions:NSApplicationActivateIgnoringOtherApps];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
- (void)_updateTargetInfoForFrontMostApplication {
|
- (void)_updateTargetInfoForFrontMostApplication {
|
||||||
|
|||||||
Reference in New Issue
Block a user