Bug 767 - wininfo dies with BadWindow error
Summary: wininfo dies with BadWindow error
Status: CLOSED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/other (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Billy Biggs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-20 07:22 UTC by Billy Biggs
Modified: 2011-10-15 17:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to wininfo (1.01 KB, patch)
2004-06-22 14:04 UTC, Douglas Pollock
no flags Details | Splinter Review

Description Billy Biggs 2004-06-20 07:22:38 UTC
wininfo-0.5

Watching a window that is being minimized, or during map/unmap (try switching
desktops), can cause wininfo to die with a BadWindow error.  This is because we
may be querying a tree that contains an invalid node.

The fix is to trap BadWindow errors, and back out to wait for the next time our
timer hits.  Since this can put the tree in a bad state, we should probably
reset all of the GUI to be blank.  While this may cause a flash, at least we
won't show misleading information.
Comment 1 Douglas Pollock 2004-06-22 14:04:35 UTC
Created attachment 410 [details] [review]
Patch to wininfo

Catches the BadWindow error using gdk_error_trap_push and gdk_error_trap_pop. 
It doesn't do anything with the error; just throws it away and waits for the
next loop.
Comment 2 Billy Biggs 2004-06-22 20:53:55 UTC
Applied in HEAD for 0.6, thanks for your contribution.


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.