Bug 19381 - xprop -spy does not handle destruction properly
Summary: xprop -spy does not handle destruction properly
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xprop (show other bugs)
Version: 7.3 (2007.09)
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 13506
  Show dependency treegraph
 
Reported: 2009-01-03 15:03 UTC by Ben Hutchings
Modified: 2018-06-17 19:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
proposed fix (1.42 KB, patch)
2009-01-03 15:03 UTC, Ben Hutchings
no flags Details | Splinter Review

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.