I'm on Ubuntu 22.04.3 LTS with gnome version 42.9 and Wayland.I'm trying to list the open windows and get the name of the window on top in a python program but I can't find any command despite my research.xdotool, wmctrl don't workxlsclients, I don't know how to get the window titles.
can you please help me?