From e15687c71e5c09c266b8ffcaf17e67bf74ed115e Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 11 Jul 2024 16:22:48 -0400 Subject: [PATCH] Request ignores changes to properties that don't apply to it --- v2/request.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }