backend-rdp: report a zero physical size to compositor
authorLeandro Ribeiro <leandrohr@riseup.net>
Fri, 13 Dec 2019 03:05:09 +0000 (00:05 -0300)
committerLeandro Ribeiro <leandrohr@riseup.net>
Tue, 17 Dec 2019 15:52:57 +0000 (12:52 -0300)
commitdb6b141bf0acb9a45ef07a50d80b27c8d724ad07
tree35b37b747d56c37dd8ab2a2fc5d47abff4a3d21d
parentaaf8bfc0d338b74f7d58fd21a341f8f2baa33bcb
backend-rdp: report a zero physical size to compositor

The RDP-backend is reporting a non-zero physical size
value, and there are some clients that get the resolution
in pixels directly from the physical size reported. This
leads to a resolution of 25.4 PPI (or 1px/1mm), which is too
small.

But there's no need for that. The physical size is reported
on enabling the output (in the case of RDP-backend we have
no information about it before this), and the resolution is
already set in this moment.

Report a zero physical size to compositor, what makes frontend
and clients use their default values and applications become
readable.

Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
libweston/backend-rdp/rdp.c