{
    "content": [
        {
            "type": "text",
            "text": "# xwininfo(1) (man)\n\n**Summary:** xwininfo - window information utility for X\n\n**Synopsis:** xwininfo  [-help]  [-id  wdid]  [-root]  [-name  wdname]  [-int] [-children] [-tree] [-stats]\n[-bits] [-events] [-size] [-wm]  [-shape]  [-frame]  [-all]  [-english]  [-metric]  [-display\nhost:dpy] [-version]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | — | — |  |\n| — | — | — | This option allows the user to specify a target window wdid on the command line rather than using the mouse to select th |\n| — | — | — | This option allows the user to specify that the window named wdname is the target window on the command line rather than |\n| — | — | — | situations where the root window is completely obscured. |\n| — | — | — | The default is to display them as hexadecimal values. |\n| — | — | — | This option causes the root, parent, and children windows' ids and names of the se‐ lected window to be displayed. |\n| — | — | — |  |\n| — | — | — | appearance of the selected window. Information displayed includes the location of the window, its width and height, its  |\n| — | — | — | dow's raw bits and how the selected window is to be stored. Displayed information includes the selected window's bit gra |\n| — | — | — | mask of events wanted by some client and the event mask of events not to propagate are displayed. |\n| — | — | — | formation includes: for both the normal size hints and the zoom size hints, the user supplied location if any; the progr |\n| — | — | — | formation displayed may include whether or not the application accepts input, what the window's icon window # and name i |\n| — | — | — | played. |\n| — | — | — | windows. |\n| — | — | — | played in millimeters as well as number of pixels, based on what the server thinks the resolution is. Geometry specifica |\n| — | — | — | This option causes all individual height, width, and x and y positions to be dis‐ played in inches (and feet, yards, and |\n| — | — | — |  |\n| -d | — | — | This option allows you to specify the server to connect to; see X(7). |\n| — | — | — | This option indicates that xwininfo should print its version information and exit. |\n\n## Examples\n\n- `The following is a sample summary taken with no options specified:`\n- `xwininfo: Window id: 0x60000f \"xterm\"`\n- `Absolute upper-left X: 2`\n- `Absolute upper-left Y: 85`\n- `Relative upper-left X:  0`\n- `Relative upper-left Y:  25`\n- `Width: 579`\n- `Height: 316`\n- `Depth: 8`\n- `Visual: 0x1e`\n- `Visual Class: PseudoColor`\n- `Border width: 0`\n- `Class: InputOutput`\n- `Colormap: 0x27 (installed)`\n- `Bit Gravity State: NorthWestGravity`\n- `Window Gravity State: NorthWestGravity`\n- `Backing Store State: NotUseful`\n- `Save Under State: no`\n- `Map State: IsViewable`\n- `Override Redirect State: no`\n- `Corners:  +2+85  -699+85  -699-623  +2-623`\n- `-geometry 80x24+0+58`\n\n## See Also\n\n- X(7)\n- xprop(1)\n- xdpyinfo(1)\n- xdriinfo(1)\n- xvinfo(1)\n- glxinfo(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (9 lines)\n- **OPTIONS** (1 lines) — 19 subsections\n  - -help (1 lines)\n  - -id (5 lines)\n  - -name (3 lines)\n  - -root (2 lines)\n  - -int (2 lines)\n  - -children (3 lines)\n  - -tree -children (1 lines)\n  - -stats (4 lines)\n  - -bits (4 lines)\n  - -events (3 lines)\n  - -size (6 lines)\n  - -wm (4 lines)\n  - -shape (2 lines)\n  - -frame (2 lines)\n  - -metric (3 lines)\n  - -english (4 lines)\n  - -all (1 lines)\n  - -d, -display (2 lines)\n  - -version (2 lines)\n- **EXAMPLE** (26 lines)\n- **ENVIRONMENT** (2 lines)\n- **SEE ALSO** (2 lines)\n- **BUGS** (6 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\nxwininfo - window information utility for X\n\n### SYNOPSIS\n\nxwininfo  [-help]  [-id  wdid]  [-root]  [-name  wdname]  [-int] [-children] [-tree] [-stats]\n[-bits] [-events] [-size] [-wm]  [-shape]  [-frame]  [-all]  [-english]  [-metric]  [-display\nhost:dpy] [-version]\n\n### DESCRIPTION\n\nXwininfo  is a utility for displaying information about windows.  Various information is dis‐\nplayed depending on which options are selected.  If no options are chosen, -stats is assumed.\n\nThe user has the option of selecting the target window with the mouse (by clicking any  mouse\nbutton in the desired window) or by specifying its window id on the command line with the -id\noption.  Or instead of specifying the window by its id number, the -name option may  be  used\nto  specify which window is desired by name.  There is also a special -root option to quickly\nobtain information on the screen's root window.\n\n### OPTIONS\n\n#### -help\n\n#### -id\n\nThis option allows the user to specify a target  window  wdid  on  the  command  line\nrather  than using the mouse to select the target window.  This is very useful in de‐\nbugging X applications where the target window is not mapped to the screen  or  where\nthe use of the mouse might be impossible or interfere with the application.\n\n#### -name\n\nThis  option  allows  the  user to specify that the window named wdname is the target\nwindow on the command line rather than using the mouse to select the target window.\n\n#### -root\n\nsituations where the root window is completely obscured.\n\n#### -int\n\nThe default is to display them as hexadecimal values.\n\n#### -children\n\nThis option causes the root, parent, and children windows' ids and names of  the  se‐\nlected window to be displayed.\n\n#### -tree -children\n\n#### -stats\n\nappearance of the selected window.  Information displayed includes  the  location  of\nthe  window, its width and height, its depth, border width, visual id and class, col‐\normap id if any, map state, backing-store hint, and location of the corners.\n\n#### -bits\n\ndow's  raw  bits  and how the selected window is to be stored.  Displayed information\nincludes the selected window's bit gravity, window gravity, backing-store hint, back‐\ning-planes value, backing pixel, and whether or not the window has save-under set.\n\n#### -events\n\nmask of events wanted by some client and the event mask of events  not  to  propagate\nare displayed.\n\n#### -size\n\nformation includes: for both the normal size hints and the zoom size hints, the  user\nsupplied  location  if  any;  the program supplied location if any; the user supplied\nsize if any; the program supplied size if any; the minimum size if any;  the  maximum\nsize  if any; the resize increments if any; and the minimum and maximum aspect ratios\nif any.\n\n#### -wm\n\nformation  displayed  may  include whether or not the application accepts input, what\nthe window's icon window # and name is, where the window's icon should go,  and  what\nthe window's initial state should be.\n\n#### -shape\n\nplayed.\n\n#### -frame\n\nwindows.\n\n#### -metric\n\nplayed in millimeters as well as number of pixels, based on what  the  server  thinks\nthe resolution is. Geometry specifications that are in +x+y form are not changed.\n\n#### -english\n\nThis  option  causes  all  individual height, width, and x and y positions to be dis‐\nplayed in inches (and feet, yards, and miles if necessary) as well as number of  pix‐\nels. -metric and -english may both be enabled at the same time.\n\n#### -all\n\n#### -d, -display\n\nThis option allows you to specify the server to connect to; see X(7).\n\n#### -version\n\nThis option indicates that xwininfo should print its version information and exit.\n\n### EXAMPLE\n\nThe following is a sample summary taken with no options specified:\n\nxwininfo: Window id: 0x60000f \"xterm\"\n\nAbsolute upper-left X: 2\nAbsolute upper-left Y: 85\nRelative upper-left X:  0\nRelative upper-left Y:  25\nWidth: 579\nHeight: 316\nDepth: 8\nVisual: 0x1e\nVisual Class: PseudoColor\nBorder width: 0\nClass: InputOutput\nColormap: 0x27 (installed)\nBit Gravity State: NorthWestGravity\nWindow Gravity State: NorthWestGravity\nBacking Store State: NotUseful\nSave Under State: no\nMap State: IsViewable\nOverride Redirect State: no\nCorners:  +2+85  -699+85  -699-623  +2-623\n-geometry 80x24+0+58\n\n### ENVIRONMENT\n\nDISPLAY To get the default host and display number.\n\n### SEE ALSO\n\nX(7), xprop(1), xdpyinfo(1), xdriinfo(1), xvinfo(1), glxinfo(1)\n\n### BUGS\n\nUsing -stats -bits shows some redundant information.\n\nThe  -geometry string displayed must make assumptions about the window's border width and the\nbehavior of the application and the window manager.  As a result, the location given  is  not\nalways correct.\n\n### AUTHOR\n\nMark Lillibridge, MIT Project Athena\n\n\n\nX Version 11                               xwininfo 1.1.5                                XWININFO(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "xwininfo",
        "section": "1",
        "mode": "man",
        "summary": "xwininfo - window information utility for X",
        "synopsis": "xwininfo  [-help]  [-id  wdid]  [-root]  [-name  wdname]  [-int] [-children] [-tree] [-stats]\n[-bits] [-events] [-size] [-wm]  [-shape]  [-frame]  [-all]  [-english]  [-metric]  [-display\nhost:dpy] [-version]",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This option allows the user to specify a target window wdid on the command line rather than using the mouse to select the target window. This is very useful in de‐ bugging X applications where the target window is not mapped to the screen or where the use of the mouse might be impossible or interfere with the application."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This option allows the user to specify that the window named wdname is the target window on the command line rather than using the mouse to select the target window."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "situations where the root window is completely obscured."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The default is to display them as hexadecimal values."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This option causes the root, parent, and children windows' ids and names of the se‐ lected window to be displayed."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "appearance of the selected window. Information displayed includes the location of the window, its width and height, its depth, border width, visual id and class, col‐ ormap id if any, map state, backing-store hint, and location of the corners."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "dow's raw bits and how the selected window is to be stored. Displayed information includes the selected window's bit gravity, window gravity, backing-store hint, back‐ ing-planes value, backing pixel, and whether or not the window has save-under set."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "mask of events wanted by some client and the event mask of events not to propagate are displayed."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "formation includes: for both the normal size hints and the zoom size hints, the user supplied location if any; the program supplied location if any; the user supplied size if any; the program supplied size if any; the minimum size if any; the maximum size if any; the resize increments if any; and the minimum and maximum aspect ratios if any."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "formation displayed may include whether or not the application accepts input, what the window's icon window # and name is, where the window's icon should go, and what the window's initial state should be."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "played."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "windows."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "played in millimeters as well as number of pixels, based on what the server thinks the resolution is. Geometry specifications that are in +x+y form are not changed."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This option causes all individual height, width, and x and y positions to be dis‐ played in inches (and feet, yards, and miles if necessary) as well as number of pix‐ els. -metric and -english may both be enabled at the same time."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-d",
                "long": null,
                "arg": null,
                "description": "This option allows you to specify the server to connect to; see X(7)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This option indicates that xwininfo should print its version information and exit."
            }
        ],
        "examples": [
            "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"
        ],
        "see_also": [
            {
                "name": "X",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/X/7/json"
            },
            {
                "name": "xprop",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xprop/1/json"
            },
            {
                "name": "xdpyinfo",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xdpyinfo/1/json"
            },
            {
                "name": "xdriinfo",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xdriinfo/1/json"
            },
            {
                "name": "xvinfo",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xvinfo/1/json"
            },
            {
                "name": "glxinfo",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/glxinfo/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-help",
                        "lines": 1
                    },
                    {
                        "name": "-id",
                        "lines": 5
                    },
                    {
                        "name": "-name",
                        "lines": 3
                    },
                    {
                        "name": "-root",
                        "lines": 2
                    },
                    {
                        "name": "-int",
                        "lines": 2
                    },
                    {
                        "name": "-children",
                        "lines": 3
                    },
                    {
                        "name": "-tree -children",
                        "lines": 1
                    },
                    {
                        "name": "-stats",
                        "lines": 4
                    },
                    {
                        "name": "-bits",
                        "lines": 4
                    },
                    {
                        "name": "-events",
                        "lines": 3
                    },
                    {
                        "name": "-size",
                        "lines": 6
                    },
                    {
                        "name": "-wm",
                        "lines": 4
                    },
                    {
                        "name": "-shape",
                        "lines": 2
                    },
                    {
                        "name": "-frame",
                        "lines": 2
                    },
                    {
                        "name": "-metric",
                        "lines": 3
                    },
                    {
                        "name": "-english",
                        "lines": 4
                    },
                    {
                        "name": "-all",
                        "lines": 1
                    },
                    {
                        "name": "-d, -display",
                        "lines": 2,
                        "flag": "-d"
                    },
                    {
                        "name": "-version",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "EXAMPLE",
                "lines": 26,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}