this->parent_window = parent_window;
this->top_level = parent_window->top_level;
this->xv_portid = resources->use_xvideo ? top_level->xvideo_port_id : -1;
this->parent_window = parent_window;
this->top_level = parent_window->top_level;
this->xv_portid = resources->use_xvideo ? top_level->xvideo_port_id : -1;