Skip to content
  • Jonas Ådahl's avatar
    wayland: Handle after-paint invocations when nothing was painted · 64c9ec14
    Jonas Ådahl authored
    If a after-paint was scheduled but nothing was painted, for example when
    the it was scheduled by a subsurface wanting to update its position,
    we'd still try to read back from the backfill cairo surface and update
    the committed cairo surface reference even though no buffer was
    attached.
    
    Fix this by adding a new state, 'pending_buffer_attached', which is only
    true if a buffer was attached during frame. Only when this is true will
    the backfill be read back and the committed cairo surface reference be
    updated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762120
    64c9ec14