Properly reset offToCornerId and apertureCorner when the effect closes
When the effect closes, all the extra data attached to the window (offToCornerId and apertureCorner properties) are not valid anymore and need to be reset right after the animation end. also manage the two edge cases where a window either appeared or got minimized while the effect was running to either show it or not
Edited by Marco Martin