Skip to content
  • Jonas Ådahl's avatar
    MetaWaylandSurface: Return top most toplevel window for popups · fbd237bc
    Jonas Ådahl authored
    Make meta_wayland_surface_get_toplevel_window return the top most window
    in case its a chain of popups. This is to make all popups in a chain
    including the top most surface have the same scale.
    
    The reason for this is that popups are mostly integrated part of the
    user interface of its parent (such as menus). Having them in a different
    scale would look awkward.
    
    Note that this doesn't affect non-popup windows with parent-child
    relationship, because such windows are typically not an integral part of
    the user interface (settings window, dialogs, ..) and can typically be
    moved independently. It would probably make sense to make attached modal
    dialogs have the same scale as their parent windows, but modal dialogs
    are currently not supported for Wayland clients.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744934
    fbd237bc