a4eda73607
Listen for wl_buffer.release events in the shm path, and if a previously posted buffer is still held by the server, allocate another one. The maximum of two should be enough, since there is no point for a server to hold more than one buffer at a time. Buffer allocation happens as needed instead of window creation time. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>