X / Gnome:如何测量打开的窗口的几何形状
时间:2020-03-05 18:56:10 来源:igfitidea点击:
是否存在标准的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