diff --git a/nsplugins/nspluginloader.cpp b/nsplugins/nspluginloader.cpp index 3c7fe529b0..36d36a8be8 100644 --- a/nsplugins/nspluginloader.cpp +++ b/nsplugins/nspluginloader.cpp @@ -74,6 +74,16 @@ NSPluginInstance::~NSPluginInstance() } +void NSPluginInstance::windowChanged(WId w) +{ + setBackgroundMode(w == 0 ? QWidget::PaletteBackground : QWidget::NoBackground); + if (w == 0) { + // FIXME: Put a notice here to tell the user that it crashed. + repaint(); + } +} + + void NSPluginInstance::resizeEvent(QResizeEvent *event) { if (shown == false) diff --git a/nsplugins/nspluginloader.h b/nsplugins/nspluginloader.h index ac44f43e0f..e74cde73b0 100644 --- a/nsplugins/nspluginloader.h +++ b/nsplugins/nspluginloader.h @@ -50,6 +50,7 @@ public: protected: void resizeEvent(QResizeEvent *event); + void windowChanged(WId w); class NSPluginLoader *_loader; bool shown; };