I am currently working with Xvfb to grab the screenshots of my programs. Is there a way to determine the number and the names of the windows that are currently "displayed" in Xvfb?
I also appreciate some reading resources!
If you run a window manager on the Xvfb display, you can use whatever features it has to list window information.
On the command line, wmctrl can show some window information.