• Carlos Garnacho's avatar
    wayland: Use read_all() when reading wayland selections · 006cdac5
    Carlos Garnacho authored
    Plain input stream read() calls don't provide hard guarantees about
    the number of bytes read, but the async method callback sort of
    relies on bytes being less than requested only when reaching the
    end of the transmitted data. If that happens mid transfer, that
    doesn't bode well.
    
    This is actually the behavior of g_input_stream_read_all(), so
    switch to using it.
    006cdac5
meta-xwayland-selection.c 58.5 KB