Skip to content

Commit 47d4417

Browse files
committed
Linux: Fix bad window error when using the XEmbedComponent
The issue was reproducible by opening a plugin window in the AudioPluginHost.
1 parent d0167d8 commit 47d4417

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3190,6 +3190,7 @@ class ConfiguredEditorComponent final : public Component,
31903190
Inner() : XEmbedComponent (true, true)
31913191
{
31923192
setOpaque (true);
3193+
setVisible (true);
31933194
addToDesktop (0);
31943195
}
31953196
};

modules/juce_gui_extra/native/juce_XEmbedComponent_linux.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ class XEmbedComponent::Pimpl : private ComponentListener
459459
//==============================================================================
460460
bool getXEmbedMappedFlag()
461461
{
462+
if (client == 0)
463+
return false;
464+
462465
XWindowSystemUtilities::GetXProperty embedInfo (getDisplay(), client, infoAtom, 0, 2, false, infoAtom);
463466

464467
if (embedInfo.success && embedInfo.actualFormat == 32

0 commit comments

Comments
 (0)