This removes unused pointering. Furthermore, for nonembedded windows the video size is set directly to avoid strange resizing after window creation.