The protocol does not require us to flush_damage() on wl_buffer destruction. In fact, by the time the server receives this request, the client may have already clobbered the buffer's storage, so we could be reading undefined data. Instead, just forget about the buffer. The protocol already says, that a client must not destroy a buffer that is being read by the server, or the window contents become undefined. The practical reason for this change is that the following commit can consolidate wl_buffer destruction listener handlers. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
parent
a6421c4ea8
commit
aecd3ec54f
Loading…
Reference in new issue