I would like to get the full size of any windows in X11 to automatically resize it.
So far I have used wmctrl, but the size seems to be incomplete. eg
>$ wmctrl -lG 0x00e0000f -1 0 0 1920 1200 tclogin1 KDE Desktop 0x010000ee -1 0 1160 1920 40 tclogin1 kicker 0x01200008 0 4 28 1920 1127 tclogin1 ...p7zip_9.13/bin - Shell No. 8 - Konsole
Kicker's height is 40 and the screen resolution is 1920x1200, so if I wanted to resize my Konsole to display the entire screen, but its size should be 1920x1160 (1200-40).
But when I do this, Konsole overrides the kicker size. Therefore, I assume that this means that window decorations cannot be taken into account here.
How do I know the size of the decor that I will need to add to the window size specified by wmctrl?
thanks
source share