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

Pali Rohár pali.rohar at gmail.com
Tue May 9 10:17:17 UTC 2017

On Monday 08 May 2017 09:55:08 Eric Anholt wrote:
> That would also not be accepted.  You don't get to rewrite output like
> this in old CLI tools that have had consistent behavior for decades.  It
> causes breakage for systems expecting old behavior, even when that
> behavior is unfortunate and wrong.

In that case my patch should be suitable. It does not change format of
lines which reports dimensions and resolutions. It just use XRANDR
extension to query correct information.

It is really a problem if xdpyinfo query for information via XRANDR
extension which provides correct data instead of old XScreen information
which are not valid on XServer with XRANDR >= 1.2 support? And if yes,

Old applications/scripts expects that xdpyinfo provides on its output
correct dimension and resolution information. And I'm trying to fix it.
But the only way to get correct information is to query XRANDR.

Pali Rohár
pali.rohar at gmail.com

More information about the xorg-devel mailing list