Xpra: Ticket #2410: HTML5 client on HIDPI screens

Hi,

I wanted to ask if there are plans to support HiDPI (e.g. Retina) screens for HTML 5 clients. Out of the box the HTML 5 client will use the css width / height properties to render the server screen, which will result in relatively low resolution displays (the virtualized screen resolution is small).

With some small changes we managed to get around this by using the window.devicePixelRatio to render a higher res screen on the server and scale it back via css transform to the original screen (plus some small changes on the mouse handling). After this the screens look nice and sharp on Retina displays as well.

Would such a patch be considered for inclusion in the repository? Many screens these days tend to have HIDPI resolutions, so some kind of better support might be welcomed by the community.

Many thanks for your great work on this project,

Regards,

Andras



Mon, 09 Sep 2019 13:49:32 GMT - Andras Sali: priority, type, component changed


Mon, 09 Sep 2019 14:41:22 GMT - Antoine Martin: owner changed

Would such a patch be considered for inclusion in the repository?

Sure, that would be great, please send your version of the changes. Normally, this should not require any server-side changes. I don't have any hardware to test it, but I think there are ways to force enable hidpi.


Tue, 17 Sep 2019 07:40:10 GMT - Antoine Martin: milestone changed

Probably too late for v3. See also #2369, #1933, #2500.


Wed, 18 Mar 2020 09:17:06 GMT - Antoine Martin:

Easy enough to reproduce with any browser by scaling up. @sali.andrew: time to get your code merged, or things will diverge and we'll all end up wasting time.


Wed, 18 Mar 2020 11:50:14 GMT - Antoine Martin: owner, status, milestone changed


Sun, 04 Oct 2020 14:35:28 GMT - Antoine Martin:

@sali.andrew: bump!


Mon, 28 Dec 2020 15:01:53 GMT - Antoine Martin: milestone changed

Not heard back, so it looks like I will have to duplicate the efforts..


Sat, 23 Jan 2021 05:50:33 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2410