[Wayland-bugs] [Bug 774476] New: surfaces with no outputs get scale factor reset

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Tue Nov 15 14:11:10 UTC 2016


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

            Bug ID: 774476
           Summary: surfaces with no outputs get scale factor reset
    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: ---

When switching workspaces, surfaces may (not always, that seems like a mutter
bug) receive wl_surface.leave on the output, which leaves the surface with no
outputs.

In this case gdk also calls window_update_scale() which checks the MAX of the
current outputs, and resorts to 1 as the output list is empty. This is bad for
hidpi, as it triggers re-scaling of the windows, both when they're being
unmapped due to switching to another workspace, and again to get the right
scale factor when switching back.

I suggest to keep the current scale if there's no outputs, it would be most
likely correct the next time the surface is mapped, and if it isn't, there's
still some visible re-scaling due anyway. Patch coming.

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


More information about the wayland-bugs mailing list