16
是否有標準的X/Gnome程序能顯示我選擇的窗口的X,Y寬度和深度像素?類似於xterm在調整大小時顯示窗口的寬度和深度(按行)的方式。X/Gnome:如何測量打開的窗口的幾何圖形
我在Red Hat Enterprise Linux 4.4上運行。
謝謝!
是否有標準的X/Gnome程序能顯示我選擇的窗口的X,Y寬度和深度像素?類似於xterm在調整大小時顯示窗口的寬度和深度(按行)的方式。X/Gnome:如何測量打開的窗口的幾何圖形
我在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