claimRequests must be strictly data
This commit is contained in:
parent
534a8fd0ad
commit
991d74f365
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user