@compositor yes - getting the active window or class name is extremely trivial w/ X11 & apps &/or scripts written to help w/ all sorts of use cases & accessibility needs sometimes need that awareness.
I know the response has been for DEs to all individually re-implement this feature however they see fit - but that’s a lot of fragmentation & I’ve yet to see gnome really solidify how they’ll expose it long term.
https://unix.stackexchange.com/questions/703084/how-to-get-current-window-class-name-from-script
@benreaves Wayland.social is not associated with the Wayland project by freedesktop.org; any double entendres are purely coincidental.
Perhaps somebody who sees this can help you, though :)