GNOME Bugzilla – Bug 753675
DPI/Size calculation should be done relative to the "current" monitor
Last modified: 2018-05-22 16:18:53 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.
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.
-- 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.