문제

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