On X11 I used to use xprop
to get information about active windows but on Wayland that tool doesn't work anymore.
There have been questions like this, or this one which ask basically the same question as I do, and the answer is: no, this is not intended and won't be supported by Wayland.
This is why I won't switch to Wayland until I'm forced to, but maybe Wayland has changed since 2017?
So I rephrase the question: as today, is there a way to programmatically get the currently active window title and PID on Wayland?
Maybe even a convienient Python library?