Get rid of all SetWindowPos() calls

This actually resizes the client area, but the experience feels way
better if we just leave it at its maximum size.
This commit is contained in:
Robbert van der Helm
2020-04-13 13:54:34 +02:00
parent 7ee1b0223c
commit 266674a217
3 changed files with 14 additions and 34 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. This is handled implicitly when handling the
// ConfigureNotify X11 events but handling this here as well
// makes the resizing look much smoother.
// TODO: Check if this actually makes drag resizing feel better,
// otherwise just remove this
editor.resize(value, 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