Mercurial > minori
diff dep/animia/src/win/quartz.cc @ 192:50108040d792
dep/animia/quartz: GetWindowBundleIdentifier -> GetProcessBundleIdentifier
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 07 Dec 2023 01:50:29 -0500 |
parents | 0fc126d52de4 |
children | c4ca035c565d |
line wrap: on
line diff
--- a/dep/animia/src/win/quartz.cc Thu Dec 07 01:48:04 2023 -0500 +++ b/dep/animia/src/win/quartz.cc Thu Dec 07 01:50:29 2023 -0500 @@ -41,7 +41,7 @@ return osx::util::StringFromCFString(title, result); } -static bool GetWindowBundleIdentifier(pid_t pid, std::string& result) { +static bool GetProcessBundleIdentifier(pid_t pid, std::string& result) { /* The Bundle ID is essentially OS X's solution to Windows' * "class name"; theoretically, it should be different for * each program, although it requires an app bundle. @@ -98,7 +98,7 @@ if (CFDictionaryGetValueIfPresent(window, CFSTR("kCGWindowNumber"), reinterpret_cast<const void**>(&num)) && num) osx::util::GetCFNumber(num, win.id); } - if (!GetWindowBundleIdentifier(proc.pid, win.class_name)) { + if (!GetProcessBundleIdentifier(proc.pid, win.class_name)) { // Fallback to the Quartz window name, which is unlikely to be filled, but it // *could* be. CFStringRef str = nullptr;