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:
parent
d0167d8e3e
commit
47d441787c
2 changed files with 4 additions and 0 deletions
|
|
@ -3190,6 +3190,7 @@ private:
|
|||
Inner() : XEmbedComponent (true, true)
|
||||
{
|
||||
setOpaque (true);
|
||||
setVisible (true);
|
||||
addToDesktop (0);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue