Commit fe3c3cb2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix build

parent 3212a8f4
......@@ -344,9 +344,7 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
NPWindow& curr_window = p_plugin->getWindow();
if (window/* && window->window */) {
::DebugStr((const unsigned char*)"vlcshell: received window object from browser");
if (!curr_window.window) {
::DebugStr((const unsigned char*)"vlcshell: no current window");
/* we've just been created */
p_plugin->setWindow(*window);
p_plugin->create_windows();
......@@ -376,13 +374,11 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
p_plugin->update_controls();
} else {
if (window->window == curr_window.window) {
::DebugStr((const unsigned char*)"Already have current window, and new window is the same");
/* resize / move notification */
p_plugin->setWindow(*window);
p_plugin->resize_windows();
} else {
/* plugin parent window was changed, notify plugin about it */
::DebugStr((const unsigned char*)"Already have current window, but new window is different");
p_plugin->destroy_windows();
p_plugin->setWindow(*window);
p_plugin->create_windows();
......@@ -392,7 +388,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
} else {
/* NOTE: on Windows, Opera does not call NPP_SetWindow
* on window destruction. */
::DebugStr((const unsigned char*)"vlcshell: received no window object from browser");
if (curr_window.window) {
/* we've been destroyed */
p_plugin->destroy_windows();
......
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