"The desktop−scaling value can take the form:
desktop−size the scaling will be enabled and the server will render to the given size. ie: 1600x1200 "
Basically I expect the "desktop-size" to work like: the pair I assign to it become the final xpra window size.
But there are at least two problems here:
PoC: xpra attach :7 --desktop-scaling=10x10
There will be a line of log says something like:
2019-02-06 14:05:09,118 Warning: scaling values 0.0x0.0 are out of range
whereas --desktop-scaling=10.0x10.0
indicates otherwise.
I have no idea whether it is a feature but it follows a buggy pattern.
Consider that the X screen is 400x300 and my monitor is 1600x1200, to fit the X screen to my monitor I need to scale to 4x the original size, so width/1600 = 4, height/1200 = 4, yields that width=6400, height=4800, I will need to send 6400x4800 to make a 4x scaling, so that the final rendering window is 1600x1200.
I believe there is more likely a bug than a feature here...
Consider that the X screen is 400x300
"X screen"? You mean the server side virtual screen? Or just a specific X11 application window?
and my monitor is 1600x1200,
OK.
to fit the X screen to my monitor I need to scale to 4x the original size, so width/1600 = 4, height/1200 = 4, yields that width=6400, height=4800, I will need to send 6400x4800 to make a 4x scaling, so that the final rendering window is 1600x1200.
Or just desktop-scaling=4
.
I believe there is more likely a bug than a feature here...
I'm not really following, can you explain what doesn't work or isn't well documented?
For the second point maybe I did not say it very clearly ...
Actually there are many sizes: physical monitor size, xpra desktop size, window size (in my monitor).
As for --desktop-scaling=AxB
where A, B is greater than 8, I expect the size to be the final window size. So when the xpra desktop size is 400x300 and I want to scale it to 1920x1080 I do not need some strange algebra to find a strange value as scale and directly pass --desktop-scaling=1920x1080
should work.
However the code seems to divide the input with PHYSICAL MONITOR SIZE rather than xpra desktop size. I think that is wrong. Now when I pass 1920x1080 to it the resulting window is 400x300. How can I have a scaled 1920x1080 window? 9216x3888. That is ridiculous.
As for --desktop-scaling=AxB where A, B is greater than 8, I expect the size to be the final window size.
That's not possible, sorry. There may be multiple windows each with different geometries (ie: shadowing a server with multiple monitors), or you may be connecting to a seamless server. (which is what most people use xpra for).
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2135