wl_surface::attach(NULL) release previous buffer?

John Cox jc at kynesim.co.uk
Thu Sep 14 11:24:42 UTC 2023


A, hopefully, simple question - should I expect a wl_buffer::release
event from the buffer previously committed to a surface after I've
attached (and invalidated & committed) a NULL buffer to the surface? it
doesn't seem to happen for me (I have WAYLAND_DEBUG=1 logs showing it
not happening).

If I shouldn't expect a release - when is it safe to reuse/free the
buffer storage?


John Cox

More information about the wayland-devel mailing list