For the sake of making place for FvwmPager which will have it’s size calculated with DeskTopScale, which can sometimes be 12, 14, 16, 18 etc I need to know in advance what will be that values if I know DeskTopScale value.
By looking into fvwm3/modules/FvwmPager/x_pager.c around line cca 712-715 I see this definitions:
pwindow.width = (VxPages * vWidth * Columns) / Scr.VScale + Columns; pwindow.height = (VyPages * vHeight * Rows) / Scr.VScale + label_h * Rows + Rows;
Now, If my screen width is 1920, pages are 2x2, and DeskTopScale of FvwmPager 14, then this calculation should be: (2 * 1920 * 2) / (14 + 2) = 480. However, according to xwininfo or FvwmIdent, in reality it will be 497. I have tried with other DeskTopScale factors too. It sometimes “around” (like when is 16), but calculation from shell does not match this from the code.
For height it is probably even harder, because label_h is a additional value of label, but also as width, manual calculation doesn’t function either.
What am I doing wrong? Is there a way to get width and height in pixels back from DeskTopScale?