~kennylevinsen/wlhax

6ba773a62975e10a39b4881960cf177dd2c82faf — Kenny Levinsen 1 year, 11 months ago 2068f45
surface: Clear role on null attach
1 files changed, 5 insertions(+), 0 deletions(-)

M wl_surface.go
M wl_surface.go => wl_surface.go +5 -0
@@ 177,6 177,11 @@ func (r *WlSurfaceImpl) Request(packet *WaylandPacket) error {
		obj.Next.BufferX = x
		obj.Next.BufferY = y

		if bid == 0 {
			obj.Next.Role = nil
			return nil
		}

		buffer_obj := r.client.ObjectMap[bid]
		if buffer_obj == nil {
			return errors.New("no such buffer object")