Tasks that demand attention (highlighted in orange) show up in the task manager, even if those tasks are on a different virtual desktop. I have my tasks separated by virtual desktop (only tasks of the current virtual desktop are shown in the bar), but if a task of another virtual desktop demands attention, it shows up in the task manager of every virtual desktop. An option to disable this behavior could be helpful. This option would only display that task in the task manager, if it's virtual desktop would be the active one, even if that task demanded attention.
One thing to keep in mind here is that if a user action results in a new tab or dialog opening in an existing window on another workspace, this option would give absolutely no feedback to the user, it would appear like a broken system/program. This regularly happens with for example Firefox windows when you click a link in a different program (Firefox likes to open things in the last window that was used), or with the confirmation dialog in KeepassXC when the browser extension requests a password from the database. I could see a lot of bug reports coming if this consequence is not made clear to the user, or ideally if it could be worked around.
I agree with cwo, yeah. I think this is something we have to say no to, sorry. It might be a benefit for specialized and niche use cases, but it would break more general ones for people who used the setting.
Unfortunately I don't know too much of the technical aspects to help out here. Thanks for considering it regardless!