X11: create parent window
pvr: fix too early finish of recordings