diff --git a/v2/request.go b/v2/request.go index e30bd70..a5af8bd 100644 --- a/v2/request.go +++ b/v2/request.go @@ -255,6 +255,10 @@ func (request *Request) HandlePropertyNotify ( connection *xgbutil.XUtil, event xevent.PropertyNotifyEvent, ) { + // ignore events that don't apply to our window's destination property + if event.Window != request.requestor.Window().Id { return } + if event.Atom != request.destination { return } + // the only valid state that we can process a PropertyNotify event in if request.state != selReqStateAwaitChunk { return } if event.State != xproto.PropertyNewValue { return }