claimRequests must be strictly data
This commit is contained in:
parent
534a8fd0ad
commit
991d74f365
@ -21,12 +21,6 @@ type claimRequest struct {
|
|||||||
event xevent.SelectionRequestEvent
|
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 {
|
type claimRequestKey struct {
|
||||||
property xproto.Atom
|
property xproto.Atom
|
||||||
requestor xproto.Window
|
requestor xproto.Window
|
||||||
@ -287,7 +281,7 @@ func (claim *Claim) HandlePropertyNotify (
|
|||||||
if !ok { return }
|
if !ok { return }
|
||||||
|
|
||||||
done := func () {
|
done := func () {
|
||||||
request.Close()
|
request.reader.Close()
|
||||||
delete(claim.requests, key)
|
delete(claim.requests, key)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user