Skip to content
  • Armin Krezović's avatar
    compositor: Untangle surface/view is_mapped from output assignments · f8486c33
    Armin Krezović authored and Pekka Paalanen's avatar Pekka Paalanen committed
    
    
    Currently, weston assumes a surface/view is mapped if
    it has an output assigned. In a zero outputs scenario,
    this isn't really desirable.
    
    This patch introduces a new flag to weston_surface and
    weston_view, which has to be set manually to indicate
    that a surface/view is mapped.
    
    v2:
    
    - Remove usage of new flags from
      weston_{view,surface}_is_mapped at this point. They
      will be added after all the implicit mappings have
      been introduced
    - Unmap a surface before unmapping a view so the input
      foci is cleaned up properly
    - Remove implicit view mapping from view_list_add
    - Cosmetic fixes
    
    v3:
    
    - Rebased to apply on git master
    
    Signed-off-by: default avatarArmin Krezović <krezovic.armin@gmail.com>
    Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    f8486c33