xwininfo [-help] [-id id] [-root] [-name name] [-int] [-children] [-tree] [-stats] [-bits] [-events] [-size] [-wm] [-shape] [-frame] [-all] [-english] [-metric] [-display display]
Xwininfo is a utility for displaying information about windows. Various information is displayed depending on which options are selected. If no options are chosen, -stats is assumed.
The user has the option of selecting the target window with the mouse (by clicking any mouse button in the desired window) or by specifying its window id on the command line with the -id option. Or instead of specifying the window by its id number, the -name option may be used to specify which window is desired by name. There is also a special -root option to quickly obtain information on the screen's root window.
The following is a sample summary taken with no options specified:
xwininfo: Window id: 0x60000f "xterm"
Absolute upper-left X: 2 Absolute upper-left Y: 85 Relative upper-left X: 0 Relative upper-left Y: 25 Width: 579 Height: 316 Depth: 8 Visual: 0x1e Visual Class: PseudoColor Border width: 0 Class: InputOutput Colormap: 0x27 (installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +2+85 -699+85 -699-623 +2-623 -geometry 80x24+0+58
X(7), xprop(1), xdpyinfo(1), xdriinfo(1), xvinfo(1), glxinfo(1)
Using -stats -bits shows some redundant information.
The -geometry string displayed must make assumptions about the window's border width and the behavior of the application and the window manager. As a result, the location given is not always correct.
Mark Lillibridge, MIT Project Athena