Bug 19381

Summary: xprop -spy does not handle destruction properly
Product: xorg Reporter: Ben Hutchings <ben>
Component: App/xpropAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.3 (2007.09)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 13506    
Attachments:
Description Flags
proposed fix none

Description Ben Hutchings 2009-01-03 15:03:54 UTC
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.
Comment 1 Adam Jackson 2009-02-16 16:04:48 UTC
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.