GNOME Bugzilla – Bug 751837
Window "destroy" is not fired when SwingSet2 is closed.
Last modified: 2015-07-02 14:16:57 UTC
1. Run the python window listener script in a terminal.[1] 2. Run SwingSet2 with "java -jar SwingSet2.jar" 3. Close SwingSet2 by clicking on the cross at the top left of the app The "create", "activate" and "deactivate" signals fire as expected but when closing the SwingSet2 application, "destroy" is not fired.
Created attachment 306623 [details] [review] Patch to fix destroy window events This seems to work. It seems that perhaps when the window is closed it's too late to get information from the TopLevel query so this has to be done whilst the window is closing instead. I haven't removed the call from windowClosing just to be on the safe side but I'll keep an eye on it and may remove it later.