1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Fixes for ComponentBoundsConstrainer, linux VSTs, and firefox NPAPI.

This commit is contained in:
Julian Storer 2010-10-28 17:53:52 +01:00
parent ab368cd3ac
commit 584d9a4ec0
7 changed files with 126 additions and 119 deletions

View file

@ -283,11 +283,14 @@ namespace LinuxErrorHandling
static void removeXErrorHandlers()
{
XSetIOErrorHandler (oldIOErrorHandler);
oldIOErrorHandler = 0;
if (JUCEApplication::isStandaloneApp())
{
XSetIOErrorHandler (oldIOErrorHandler);
oldIOErrorHandler = 0;
XSetErrorHandler (oldErrorHandler);
oldErrorHandler = 0;
XSetErrorHandler (oldErrorHandler);
oldErrorHandler = 0;
}
}
//==============================================================================
@ -312,28 +315,28 @@ namespace LinuxErrorHandling
//==============================================================================
void MessageManager::doPlatformSpecificInitialisation()
{
// Initialise xlib for multiple thread support
static bool initThreadCalled = false;
if (! initThreadCalled)
if (JUCEApplication::isStandaloneApp())
{
if (! XInitThreads())
// Initialise xlib for multiple thread support
static bool initThreadCalled = false;
if (! initThreadCalled)
{
// This is fatal! Print error and closedown
Logger::outputDebugString ("Failed to initialise xlib thread support.");
if (JUCEApplication::isStandaloneApp())
if (! XInitThreads())
{
// This is fatal! Print error and closedown
Logger::outputDebugString ("Failed to initialise xlib thread support.");
Process::terminate();
return;
}
return;
initThreadCalled = true;
}
initThreadCalled = true;
LinuxErrorHandling::installXErrorHandlers();
LinuxErrorHandling::installKeyboardBreakHandler();
}
LinuxErrorHandling::installXErrorHandlers();
LinuxErrorHandling::installKeyboardBreakHandler();
// Create the internal message queue
InternalMessageQueue::getInstance();