- ViewPopup *vwin = new ViewPopup(this, rx, ry, view_w, view_h);
- wdw->set_active_subwindow(vwin);
- return vwin;
+ if( vpopup )
+ vpopup->reposition_window(rx, ry, view_w, view_h);
+ else
+ vpopup = new ViewPopup(this, rx, ry, view_w, view_h);
+ wdw->set_active_subwindow(vpopup);
+ return vpopup;