Effects and dDemo now register a redraw handler instead of presenting frames themselves, so the current frame can be redrawn at any time (e.g. on window expose) and the modal overlay is drawn during them.