wl_output physical size when unknown

Jonas Ådahl jadahl at gmail.com
Mon Jan 13 17:20:35 UTC 2020

On Mon, Jan 13, 2020 at 05:14:28PM +0000, David Edmundson 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?

The answer is b). See the specification for wl_output::geometry:

	The physical size can be set to zero if it doesn't make sense for this
	output (e.g. for projectors or virtual outputs).


> David
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel

More information about the wayland-devel mailing list