Mercurial > minori
diff dep/animia/src/win/quartz.mm @ 163:44c5e6dd9488
dep/animia/osx: move GetProcessName to util/osx so we can use it in quartz
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 18 Nov 2023 00:47:40 -0500 |
parents | cdf79282d647 |
children | c413e475f496 |
line wrap: on
line diff
--- a/dep/animia/src/win/quartz.mm Fri Nov 17 16:49:57 2023 -0500 +++ b/dep/animia/src/win/quartz.mm Sat Nov 18 00:47:40 2023 -0500 @@ -1,9 +1,9 @@ #include "animia/win/quartz.h" #include "animia.h" -#include <Foundation/Foundation.h> -#include <CoreGraphics/CoreGraphics.h> -#include <AppKit/AppKit.h> +#import <Foundation/Foundation.h> +#import <CoreGraphics/CoreGraphics.h> +#import <AppKit/AppKit.h> namespace animia::internal::quartz { @@ -48,6 +48,8 @@ { IntegerFromNSNumber([window objectForKey:@"kCGWindowOwnerPID"], proc.pid); StringFromNSString([window objectForKey:@"kCGWindowOwnerName"], proc.name); + if (proc.name.empty()) + osx::util::GetProcessName(proc.pid, proc.name); } Window win;