HPlogo Using the X Window System > Chapter 8 Using the X Clients

Getting Window Information with `xwininfo'

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

The xwininfo client is a utility program that displays useful information about windows.

The syntax for xwininfo is as follows:

   xwininfo options

where options are:

-help

Prints a summary of the command usage.

-id id

Specifies the target window by window id.

-name name

Specifies the target window by name.

-root

Specifies the root window as the target.

-int

Displays window information, normally shown as hexadecimal, as decimal.

-tree

Displays ids and names of the root, parent, and child windows.

-stats

Displays window id, location, size, depth, and other information as hexadecimal.

-metric

Displays height, width, x and y information in millimeters.

-english

Displays height, width, x and y information in inches, feet, yards.

-bits

Displays information about bit and storage attributes.

-events

Displays event masks of the target window.

-size

Displays sizing information about the target window.

-wm

Displays the window manager hints for the target window.

-all

Displays all available information about a window.

-display host:display.screen

Specifies the host, display, and screen to target.

This example illustrates the result of issuing the following command:

   xwininfo -stats Return

Once you issue the command, select a window as the target of your inquiry by moving the pointer into that window and clicking button 1.

   xwininfo ==> Window id: 0x200013 (hpaaaaa)

            ==> Upper left X: 6

            ==> Upper left Y: 6

            ==> Width: 484

            ==> Height: 316

            ==> Depth: 8

            ==> Border width: 4

            ==> Window class: InputOutput

            ==> Colormap: 0x80065

            ==> Window Bit Gravity State: NorthWestGravity

            ==> Window Window Gravity State: NorthWestGravity

            ==> Window Backing Store State: NotUseful

            ==> Window Save Under State: no

            ==> Window Map State: IsViewable

            ==> Window Override Redirect State: no

            ==> Corners:  +6+6  -782+6  -782-694  +6-694

            -geometry =80x24+6+6
© 1995 Hewlett-Packard Development Company, L.P.