diff dep/animone/src/win/quartz.cc @ 404:e561b7542b7b default tip

*: fix build on mac os x
author Paper <paper@tflc.us>
date Mon, 19 Jan 2026 20:50:40 -0500
parents adb79bdde329
children
line wrap: on
line diff
--- a/dep/animone/src/win/quartz.cc	Mon Nov 10 15:51:45 2025 -0500
+++ b/dep/animone/src/win/quartz.cc	Mon Jan 19 20:50:40 2026 -0500
@@ -106,7 +106,7 @@
 	return true;
 }
 
-static bool GetWindowTitleAccessibility(unsigned int wid, pid_t pid, std::string& result) {
+static bool GetWindowTitleAccessibility(CGWindowID wid, pid_t pid, std::string& result) {
 	CGRect bounds = {0};
 	{
 		const CGWindowID wids[1] = {wid};
@@ -190,7 +190,7 @@
 	return false;
 }
 
-static bool GetWindowTitle(unsigned int wid, pid_t pid, std::string& result) {
+static bool GetWindowTitle(CGWindowID wid, pid_t pid, std::string& result) {
 	/* try using CoreGraphics (only usable on old versions of OS X) */
 	if ((CGSDefaultConnectionForThread && CGSCopyWindowProperty) || GetCoreGraphicsPrivateSymbols()) {
 		CFPtr<CFStringRef> title;
@@ -268,14 +268,14 @@
 		proc.platform = ExecutablePlatform::Xnu;
 		CFDictionaryGetValue(window, CFSTR("kCGWindowOwnerPID"), proc.pid);
 		if (!CFDictionaryGetValue(window, CFSTR("kCGWindowOwnerName"), proc.comm))
-			fd::GetProcessName(proc.pid, proc.comm);
+			GetProcessName(proc.pid, proc.comm);
 
 		Window win;
 		win.platform = WindowPlatform::Quartz;
 		CFDictionaryGetValue(window, CFSTR("kCGWindowNumber"), win.id.quartz);
 
 		GetProcessBundleIdentifier(proc.pid, win.class_name);
-		GetWindowTitle(win.id, proc.pid, win.text);
+		GetWindowTitle(win.id.quartz, proc.pid, win.text);
 
 		if (!window_proc(proc, win)) {
 			CFRelease(windows);