1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Linux: Fix bad window error when using the XEmbedComponent

The issue was reproducible by opening a plugin window in the AudioPluginHost.
This commit is contained in:
attila 2025-09-09 17:20:59 +02:00 committed by Attila Szarvas
parent d0167d8e3e
commit 47d441787c
2 changed files with 4 additions and 0 deletions

View file

@ -3190,6 +3190,7 @@ private:
Inner() : XEmbedComponent (true, true)
{
setOpaque (true);
setVisible (true);
addToDesktop (0);
}
};

View file

@ -459,6 +459,9 @@ private:
//==============================================================================
bool getXEmbedMappedFlag()
{
if (client == 0)
return false;
XWindowSystemUtilities::GetXProperty embedInfo (getDisplay(), client, infoAtom, 0, 2, false, infoAtom);
if (embedInfo.success && embedInfo.actualFormat == 32