• Adam Jackson's avatar
    dix: Call SourceValidate before GetImage · 516e75db
    Adam Jackson authored
    This ensures that any prep work for the drawable we're about to read
    from is already done before we call down to GetImage. This should be no
    functional change as most of the callers with a non-trivial
    SourceValidate are already wrapping GetImage and doing the equivalent
    thing, but we'll be simplifying that shortly.
    
    More importantly this ensures that if any of that prep work would
    generate events - like automatic compositing flushing rendering to a
    parent pixmap which then triggers damage - then it happens entirely
    before we start writing the GetImage reply header.
    
    Note that we do not do the same for GetSpans, but that's okay. The only
    way to get to GetSpans is through miCopyArea or miCopyPlane - where the
    callers must already call SourceValidate - or miGetImage - which this
    commit now protects with SourceValidate.
    
    Fixes: #902Reviewed-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
    516e75db
Name
Last commit
Last update
..
Makefile.am Loading commit data...
animcur.c Loading commit data...
filter.c Loading commit data...
glyph.c Loading commit data...
glyphstr.h Loading commit data...
matrix.c Loading commit data...
meson.build Loading commit data...
miindex.c Loading commit data...
mipict.c Loading commit data...
mipict.h Loading commit data...
mirect.c Loading commit data...
mitrap.c Loading commit data...
mitri.c Loading commit data...
picture.c Loading commit data...
picture.h Loading commit data...
picturestr.h Loading commit data...
render.c Loading commit data...