[Wayland-bugs] [Bug 753621] New: Calculate screen physical size

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri Aug 14 04:53:13 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=753621

            Bug ID: 753621
           Summary: Calculate screen physical size
    Classification: Platform
           Product: gtk+
           Version: unspecified
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
          Assignee: gtk-bugs at gtk.org
          Reporter: carlosg at gnome.org
        QA Contact: gtk-bugs at gtk.org
                CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
     GNOME version: ---

I'm attaching a (very simple) patch to calculate the physical size of the
GdkScreen, this makes gdk_screen_get_width/height_mm work, I found evince
size/scale calculations to depend on it, this patch is enough to make evince
able to zoom in/out (and find out that touchpad gestures just work there, yay).

The implementation might be more complex though, it doesn't account for
monitors covering overlapping areas, and I see this breaking for >3 monitors
arranged as a grid. It IMO covers most common usecases though, should we maybe
try to be smarter from the start anyway?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150814/9a914ae6/attachment.html>


More information about the wayland-bugs mailing list