[PATCH app/xdpyinfo] Use XRANDR 1.2 extension for reporting dimensions and resolution per output

Pali Rohár pali.rohar at gmail.com
Fri Apr 21 11:21:38 UTC 2017


On Thursday 13 April 2017 12:58:52 Michel Dänzer wrote:
> On 13/04/17 12:52 PM, Keith Packard wrote:
> > Pali Rohár <pali.rohar at gmail.com> writes:
> > 
> >> Current usage of DisplayWidthMM() and DisplayHeightMM() does not make sense
> >> for multi-monitor configuration. In most cases DPI is set to 96 as there is
> >> no sane value.
> >>
> >> Instead when XRANDR 1.2 extension is supported, report dimensions and
> >> resolution information per XRANDR monitor output. It should provide
> >> correct DPI value.
> > 
> > I'd be happy for this to be reported as additional information, but I
> > suspect there are numerous shell scripts which parse the old information
> > which will get confused by any change in the format.
> 
> In which case it should probably only be printed with -ext RANDR, to be
> consistent with other extensions.

I do not agree as xdpyinfo on Xservers with XRANDR 1.2 support output
invalid resolution and dimension information. When XRANDR 1.2 support
then those information are available only via XRANDR extension.

-- 
Pali Rohár
pali.rohar at gmail.com


More information about the xorg-devel mailing list