Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 265:ff0b2052b234 | 266:1a6a5d3a94cd |
|---|---|
| 31 | 31 |
| 32 /* meh */ | 32 /* meh */ |
| 33 bool GetCurrentlyPlaying(std::vector<std::string>& vec) { | 33 bool GetCurrentlyPlaying(std::vector<std::string>& vec) { |
| 34 std::vector<animone::Result> results; | 34 std::vector<animone::Result> results; |
| 35 | 35 |
| 36 if (!GetCurrentlyPlayingResults(results)) | 36 if (!GetCurrentlyPlayingResults(results)) { |
| 37 std::cout << "whoooops!" << std::endl; | |
| 37 return false; | 38 return false; |
| 39 } | |
| 38 | 40 |
| 39 bool success = false; | 41 bool success = false; |
| 40 | 42 |
| 41 for (const auto& result : results) { | 43 for (const auto& result : results) { |
| 42 for (const auto& media : result.media) { | 44 for (const auto& media : result.media) { |
