randr: set physical screen size to keep a constant 96 dpi
commitfa42110482171f82153596cbee766e3d1b84c925
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 21 Feb 2014 15:13:09 +0000 (21 16:13 +0100)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 24 Feb 2014 21:02:04 +0000 (24 22:02 +0100)
treec420bcf0916834de9809eb404c248896e4c0bced
parent6e2e82e6fbb8927d5154f32c83e2b95c08fef18e
randr: set physical screen size to keep a constant 96 dpi

Some applications compute DPI based on physcial screen size.  Currently,
the width is reported to be 270mm, regardless of the resolution.  This
patch instead compute a physical screen size to have a constant DPI of
96. Of course, there are possible improvements to this approach (see
fixme), however, since that code is no longer executed with DRM driver,
I don't think we should invest more effort here (I guess DRM driver
relies on xrandr / gnome-settings-daemon to do the right thing, so
physical screen is updated)

https://bugzilla.redhat.com/show_bug.cgi?id=1066094
src/vdagent-x11-randr.c