diff --git a/v2/claim.go b/v2/claim.go index 8f1442b..11bb591 100644 --- a/v2/claim.go +++ b/v2/claim.go @@ -21,12 +21,6 @@ type claimRequest struct { event xevent.SelectionRequestEvent } -// Close closes the request's reader and does other cleanup. It does not remove -// the request from the claim. -func (this *claimRequest) Close () error { - return this.reader.Close() -} - type claimRequestKey struct { property xproto.Atom requestor xproto.Window @@ -287,7 +281,7 @@ func (claim *Claim) HandlePropertyNotify ( if !ok { return } done := func () { - request.Close() + request.reader.Close() delete(claim.requests, key) }