1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

XEmbed: Add function to force window bounds update

This commit is contained in:
reuk 2022-03-09 20:09:18 +00:00
parent 5fcb718ac9
commit e9b376ce14
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
2 changed files with 9 additions and 0 deletions

View file

@ -89,6 +89,9 @@ public:
/** Removes the client window from the host. */
void removeClient();
/** Forces the embedded window to match the current size of this component. */
void updateEmbeddedBounds();
protected:
//==============================================================================
/** @internal */

View file

@ -250,6 +250,11 @@ public:
return host;
}
void updateEmbeddedBounds()
{
componentMovedOrResized (owner, true, true);
}
private:
//==============================================================================
XEmbedComponent& owner;
@ -680,6 +685,7 @@ void XEmbedComponent::focusLost (FocusChangeType changeType) { pimpl->focu
void XEmbedComponent::broughtToFront() { pimpl->broughtToFront(); }
unsigned long XEmbedComponent::getHostWindowID() { return pimpl->getHostWindowID(); }
void XEmbedComponent::removeClient() { pimpl->setClient (0, true); }
void XEmbedComponent::updateEmbeddedBounds() { pimpl->updateEmbeddedBounds(); }
//==============================================================================
bool juce_handleXEmbedEvent (ComponentPeer* p, void* e)