diff dep/animone/src/win/quartz.cc @ 299:246017a7907a

dep/animone: clean up OS X code GetProcessName() really belongs in fd.cc after removing the stupid unnecessary LaunchServices code that was stolen from... some library :)
author Paper <paper@paper.us.eu.org>
date Mon, 13 May 2024 14:15:47 -0400
parents 5437009cb10e
children a7d4e5107531
line wrap: on
line diff
--- a/dep/animone/src/win/quartz.cc	Mon May 13 03:28:42 2024 -0400
+++ b/dep/animone/src/win/quartz.cc	Mon May 13 14:15:47 2024 -0400
@@ -5,8 +5,8 @@
  * but it *does* require an Objective-C runtime.
  */
 #include "animone/win/quartz.h"
+#include "animone/fd.h"
 #include "animone.h"
-#include "animone/util/osx.h"
 
 #include <objc/message.h>
 #include <objc/runtime.h>
@@ -268,7 +268,7 @@
 		{
 			CFDictionaryGetValue(window, CFSTR("kCGWindowOwnerPID"), proc.pid);
 			if (!CFDictionaryGetValue(window, CFSTR("kCGWindowOwnerName"), proc.name))
-				osx::util::GetProcessName(proc.pid, proc.name);
+				fd::GetProcessName(proc.pid, proc.name);
 		}
 
 		Window win;
@@ -276,8 +276,7 @@
 			CFDictionaryGetValue(window, CFSTR("kCGWindowNumber"), win.id);
 
 			if (!GetProcessBundleIdentifier(proc.pid, win.class_name))
-				// Fallback to the Quartz window name, which is unlikely to be filled, but it
-				// *could* be.
+				/* XXX is this right? */
 				CFDictionaryGetValue(window, CFSTR("kCGWindowName"), win.class_name);
 
 			GetWindowTitle(win.id, proc.pid, win.text);