To get the complete list of active clients inside Xorg
linux, xorg, xserver
Solution
Run `xlsclients`.
http://cgit.freedesktop.org/xorg/app/xlsclients
Documentation about Xorg internals:
- http://cgit.freedesktop.org/xorg/xserver/tree/doc
- http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/doc
- http://cgit.freedesktop.org/ -> many apps and libraries contain their own documentation
Still, reading the source code is usually the best way, since the documentation about Xserver internals is not updated regularly.
Problem
Could someone please point me to a place(PDF) where I can find the detail description about the Xserver(Xorg) e.g DIX Layer, OS Layer etc. Specifically I am looking for how to get the complete list of all the active clients from inside the Xserver(Xorg). How does Xorg maintain this list? Whenever a new request arrives to Xorg, after accepting the connection where does it put information about that client? Thanks