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

Force Windowless on Mac

parent 789e6afc
......@@ -245,6 +245,10 @@ NPError NPP_New( NPMIMEType, NPP instance,
return NPERR_INVALID_INSTANCE_ERROR;
}
#if defined(XP_MACOSX)
bool windowless = true;
#warning BAD, please FIX
#else
/* we need to tell whether the plugin will be windowless
* before it is instantiated */
bool windowless = false;
......@@ -256,6 +260,7 @@ NPError NPP_New( NPMIMEType, NPP instance,
break;
}
}
#endif
if( windowless )
{
......
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