mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 17:32:17 +00:00
fixed #486. Added missing full screen apps to window title drop-down
This commit is contained in:
@@ -26,11 +26,11 @@
|
||||
dispatch_once(&onceToken, ^{
|
||||
ownerSkipList = @[ @"SystemUIServer", @"Window Server", @"Dock" ];
|
||||
});
|
||||
NSArray *currentWindows = CFBridgingRelease(CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly | kCGWindowListExcludeDesktopElements, kCGNullWindowID));
|
||||
NSArray *currentWindows = CFBridgingRelease(CGWindowListCopyWindowInfo(kCGWindowListExcludeDesktopElements, kCGNullWindowID));
|
||||
NSMutableArray *windowTitles = [[NSMutableArray alloc] initWithCapacity:MAX(1,currentWindows.count)];
|
||||
for(NSDictionary *windowDict in currentWindows) {
|
||||
NSString *windowName = windowDict[(NSString *)kCGWindowName];
|
||||
if([windowName length] <= 0) {
|
||||
if(windowName.length <= 0) {
|
||||
continue; // No title, skip
|
||||
}
|
||||
NSString *ownerName = windowDict[(NSString *)kCGWindowOwnerName];
|
||||
|
||||
Reference in New Issue
Block a user