GNOME Bugzilla – Bug 564561
unset _NET_SUPPORTING_WM_CHECK when shutting down
Last modified: 2009-07-09 14:27:55 UTC
This helps to prevent an obscure problem that we've run into recently. If metacity leaves _NET_SUPPORTING_WM_CHECK behind (a), and another app manages to reuse that window id (b) before another wm has taken over (c), bad things happen. GTK+ apps that are started between (a) and (c) won't know about the window manager started in (c) until the app started in (b) dies, since they keep using the value of _NET_SUPPORTING_WM_CHECK they got initially. The attached patch unsets _NET_SUPPORTING_WM_CHECK when metacity stops managing a screen. Note that this is only best-effort, since the property will still be left behind when metacity is just killed.
Created attachment 124705 [details] [review] patch
https://bugzilla.redhat.com/show_bug.cgi?id=471927 has the full story
*** Bug 564562 has been marked as a duplicate of this bug. ***
Committed with thanks.