For modern web browsers, the audio stream isn't owned by the same process as the window, making the mapping fail.
When no PID is find for a window, check the streams, whether the PID might be actually the parent PID.
Details
Details
- Reviewers
hein - Group Reviewers
Plasma - Commits
- R119:09a258a22ed4: [Task Manager] Consider parent PID for audio stream
- I get audio indicator on Chrome again
Effectively KSysGuard is called 3 times here (once for every of my 3 streams) as the ppid is cached, taking ~10ms
Diff Detail
Diff Detail
- Repository
- R119 Plasma Desktop
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
Just as a sanity check: libtm knows the pid for a window. Have you checked if there might be a faster way of doing this by checking if the stream pid is among its children?
Comment Actions
I have not. Given a browser window typically has dozens of children whereas you typically have few audio streams, I think if any it will be slower.