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

VST Host: Avoid sending unnecessary window size messages to non-DPI-aware plugins

Fixes an issue on Windows that caused superfluous HWND messages on DPI aware plugins that resulted in dismissing focused components.
This commit is contained in:
chroma 2022-08-11 16:17:06 +01:00 committed by Tom Poole
parent 603c98c9d1
commit ea84e14be0

View file

@ -3262,10 +3262,9 @@ private:
if (! isWindowSizeCorrectForPlugin (w, h))
{
updateSizeFromEditor (w, h);
embeddedComponent.updateHWNDBounds();
sizeCheckCount = 0;
}
embeddedComponent.updateHWNDBounds();
}
void checkPluginWindowSize()
@ -3349,6 +3348,7 @@ private:
#if JUCE_WINDOWS
r->resizeToFit();
r->embeddedComponent.updateHWNDBounds();
#endif
r->componentMovedOrResized (true, true);
}