claimRequests must be strictly data

This commit is contained in:
Sasha Koshka 2024-07-11 17:23:01 -04:00
parent 534a8fd0ad
commit 991d74f365

View File

@ -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)
}