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-b...@gtk.org
          Reporter: carl...@gnome.org
        QA Contact: gtk-b...@gtk.org
                CC: r...@robster.org.uk, wayland-bugs@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.
_______________________________________________
wayland-bugs mailing list
wayland-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to