Resize the window together with ConfigureNotify

This way we need less hacks and things can't get out of sync.
This commit is contained in:
Robbert van der Helm
2020-04-12 19:15:28 +02:00
parent e1cc342bd0
commit 3850e39777
3 changed files with 6 additions and 33 deletions
-11
View File
@@ -298,17 +298,6 @@ class HostCallbackDataConverter : DefaultDataConverter {
case audioMasterGetTime:
return WantsVstTimeInfo{};
break;
case audioMasterSizeWindow:
// Plugins use this opcode to indicate that their editor should
// be resized, so we'll have to update the Wine window
// accordingly
// TODO: Can we just do this when handling XCB_CONFIGURE_NOTIFY
// instead?
editor.resize(VstRect{0, 0, static_cast<short>(value),
static_cast<short>(index)});
return DefaultDataConverter::read(opcode, index, value, data);
break;
case audioMasterIOChanged:
// This is a helpful event that indicates that the VST plugin's
// `AEffect` struct has changed. Writing these results back is