Commit b5f942c6 authored by Sergey Radionov's avatar Sergey Radionov Committed by Jean-Baptiste Kempf

npapi: Added handling of parent window changing.

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 09b6e48b
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment