After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 753675 - DPI/Size calculation should be done relative to the "current" monitor
DPI/Size calculation should be done relative to the "current" monitor
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-16 10:33 UTC by Carlos Garnacho
Modified: 2018-05-22 16:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Carlos Garnacho 2015-08-16 10:33:16 UTC
I recently filed bug #753621 to gtk+ fixing gdk_screen_get_width/height_mm() on Wayland. This fixed evince document size calculations, as it all indirectly relies on ev_document_misc_get_screen_dpi().

Nonetheless, it could be worth to adapt this to be per-monitor, as it was mentioned in that bug, the GdkScreen API doesn't look so viable in the future, plus it looks like it could help on mixed regular/hidpi scenarios.
Comment 1 José Aliste 2015-08-16 23:28:46 UTC
Yes... I tried to do this a long time ago, before hidpi, because the x11 api for getting monitor size is using xrandr and therefore is more accurate in X11. The only problem is that we don't have any signal when a window changes monitor. I am just mentioning as something to take into account.
Comment 2 GNOME Infrastructure Team 2018-05-22 16:18:53 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/617.