diff src/track/media.cc @ 266:1a6a5d3a94cd

dep/animone: make bsd.cc and x11.cc actually work apparently I broke these, and even now the x11 code *still* doesn't want to work correctly (at least on FreeBSD). half of the PID response codes are just 0 or the PID for the X server itself... wtf? maybe dwm just doesn't support the XRes extension, or I'm just stupid. i don't know.
author Paper <paper@paper.us.eu.org>
date Thu, 11 Apr 2024 22:05:41 -0400
parents ff0b2052b234
children 657fda1b9cac
line wrap: on
line diff
--- a/src/track/media.cc	Thu Apr 11 10:22:05 2024 -0400
+++ b/src/track/media.cc	Thu Apr 11 22:05:41 2024 -0400
@@ -33,8 +33,10 @@
 bool GetCurrentlyPlaying(std::vector<std::string>& vec) {
 	std::vector<animone::Result> results;
 
-	if (!GetCurrentlyPlayingResults(results))
+	if (!GetCurrentlyPlayingResults(results)) {
+		std::cout << "whoooops!" << std::endl;
 		return false;
+	}
 
 	bool success = false;