From 991d74f3656d5007beeea3236b652b6de0a432a9 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 11 Jul 2024 17:23:01 -0400 Subject: [PATCH] claimRequests must be strictly data --- v2/claim.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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) }