質問

xwininfo used to return the dimensions of the window including the border and titlebar until GNOME2. Now the same command returns the dimensions of the actual window without the borders and titlebar. So is there another command that I can use in a shell script to add the two together to get the real dimensions?

役に立ちましたか?

解決

It seems like

xwininfo -frame

provides the full height of the window, including the title bar. Although I am not sure about the width shown, which seems a bit overstated.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top