wl_output physical size when unknown

Simon Ser contact at emersion.fr
Mon Jan 13 17:25:11 UTC 2020


Hi,

On Monday, January 13, 2020 6:14 PM, David Edmundson <david at davidedmundson.co.uk> wrote:

> I need to patch either a client toolkit or a compositor and I'm not sure which.
>
> There are some cases where we don't have a physical size for an output.
> For example projectors or headless virtual machines,
>
> Currently we (kwin) can send a physical size of 0,0 which is causing
> some client issues which are calculating us as having 0 dots per inch
> and doing something wrong.
>
> Should:
> a) Compositors should generate something fake but sensible
> b) Clients should handle this case
>
> I think there's a strong argument for either. What are others doing?

Clients should handle this case:
https://gitlab.freedesktop.org/wayland/wayland/blob/3a05d94dc25c0e6386fa5efd27885ceb0dc48396/protocol/wayland.xml#L2463

Simon


More information about the wayland-devel mailing list