From 513ba3b772b59d3ea825485240670d27eba59204 Mon Sep 17 00:00:00 2001 From: michael starke Date: Mon, 15 Aug 2016 15:42:29 +0200 Subject: [PATCH] fixed #486. Added missing full screen apps to window title drop-down --- MacPass/MPWindowTitleComboBoxDelegate.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MacPass/MPWindowTitleComboBoxDelegate.m b/MacPass/MPWindowTitleComboBoxDelegate.m index 38a61ae3..b3f2fa3b 100644 --- a/MacPass/MPWindowTitleComboBoxDelegate.m +++ b/MacPass/MPWindowTitleComboBoxDelegate.m @@ -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];