Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To get the complete list of active clients inside Xorg

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

like image 480
mandeep Avatar asked Aug 29 '12 05:08

mandeep


People also ask

What is Xorg for?

Xorg provides an interface between your hardware and the graphical software you want to run. Besides that, Xorg is also fully network-aware, meaning you are able to run an application on one system while viewing it on a different one.

How do I know if Xorg is installed?

If you want to check whether x11 is installed, run dpkg -l | grep xorg . If you want to check if x11 is currently running (if logged in) then run echo $XDG_SESSION_TYPE .

How do I start Xserver in Debian?

10.1 Starting the X environment The first is to start X manually when you feel like using it. To do so, log in to one of the text consoles, and type startx . This will start X and switch you to its virtual console. The second (and recommended) way to use X is with xdm , or X Display Manager.


1 Answers

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.

like image 180
pzanoni Avatar answered Oct 02 '22 20:10

pzanoni