Ignore visibility change events when the window is closing (fixes #812).
Merge pull request #833 from openscad/fix-visibility-behavior

Ignore visibility change events when the window is closing (fixes #812).