[英]X/Gnome: How to measure the geometry of an open window
是否有标准的X / Gnome程序将显示我选择的窗口的X,Y宽度和深度(以像素为单位)? 类似于xterm在调整窗口大小时显示窗口宽度和深度(以行为单位)的方式。
我正在使用Red Hat Enterprise Linux 4.4。
谢谢!
是的,你正在寻找程序'xwininfo'。 在另一个终端中运行它,然后单击您想要信息的窗口,它将提供给您。
希望这可以帮助!
$ xwininfo
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x1200007 "xeyes"
Absolute upper-left X: 1130
Absolute upper-left Y: 0
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 150
Height: 100
Depth: 24
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (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: +1130+0 -0+0 -0-924 +1130-924
-geometry 150x100-0+0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.