npapi-vlc | branch: master | Sergey Radionov <[email protected]> | Tue Dec 13 09:55:51 2011 +0700| [b5f942c671454a2d388b149d98c8aed3617ee769] | committer: Jean-Baptiste Kempf
npapi: Added handling of parent window changing. Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=b5f942c671454a2d388b149d98c8aed3617ee769 --- npapi/vlcshell.cpp | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/npapi/vlcshell.cpp b/npapi/vlcshell.cpp index 921be37..109f121 100644 --- a/npapi/vlcshell.cpp +++ b/npapi/vlcshell.cpp @@ -353,10 +353,11 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) /* resize / move notification */ p_plugin->resize_windows(); } else { - /* we've already been created, but - * our xembed socket has just changed. */ - /* FIXME */ - fprintf(stderr, "WARNING: plugin already created, but socket changed.\n"); + //plugin parent window was changed, notify plugin about it + p_plugin->destroy_windows(); + p_plugin->setWindow(*window); + p_plugin->create_windows(); + p_plugin->resize_windows(); } } } else { _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
