Created attachment 21645 [details] [review] proposed fix I would expect xprop -spy to exit cleanly when the target window is destroyed. The actual behaviour is that it sometimes dies with a BadWindow error and sometimes hangs around after the target has been destroyed. This causes problems for xdg-screensaver, which relies on it to exit when the target is destroyed (bug 13506). Proposed fix attached.
Applied (with additional paranoia in the error handler), thanks!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.