Component::isShowing broken in Ableton Live

It seems that this commit causes OpenGL rendering issues on Windows, specifically when using a custom OpenGLRenderer component within certain DAWs. Instead of the expected output, the screen displays only black. This behavior wasn’t present before this commit.

Below are images showing the issue in Studio One 6 on Windows 11. This example simply fills the background with a solid grey color using OpenGLHelpers::clear.

Latest JUCE 8 Develop:

JUCE 8 Develop prior to commit 555b667:

Here is the code I used to reproduce the issue:

struct TestComponent : public juce::Component, public juce::OpenGLRenderer
{
public:
	TestComponent()
	{
		m_openGLContext.setRenderer(this);
		m_openGLContext.attachTo(*getTopLevelComponent());
	}

	void newOpenGLContextCreated() override {}

	void renderOpenGL() override
	{
		juce::OpenGLHelpers::clear(juce::Colours::grey);
	}

	void openGLContextClosing() override {}


private:
	juce::OpenGLContext m_openGLContext;
};

//==============================================================================
/**
*/
class TestOpenGLAudioProcessorEditor : public juce::AudioProcessorEditor
{
public:
	TestOpenGLAudioProcessorEditor(TestOpenGLAudioProcessor& p) : AudioProcessorEditor(&p), audioProcessor(p)
	{
		addAndMakeVisible(m_glComponent);
		setSize(300, 180);
	}

	void resized() override 
	{
		m_glComponent.setBounds(getLocalBounds());
	}

private:
	TestOpenGLAudioProcessor& audioProcessor;
	TestComponent m_glComponent;

	JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TestOpenGLAudioProcessorEditor)
};