summaryrefslogtreecommitdiff
path: root/libs/ardour/session_vst.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-28 23:43:59 +0100
committerRobin Gareus <robin@gareus.org>2015-12-28 23:43:59 +0100
commit6f347d325a5348f958d6889dbe39caad289a3493 (patch)
tree36c34019d5b18a99290554732f2c6069508abcae /libs/ardour/session_vst.cc
parent74e4081ef422ff24343684d0eae1fe8404395c13 (diff)
prepare VST window resize
(this only triggers resizing the parent container window (like user resizes), which is not sufficient for all plugins.
Diffstat (limited to 'libs/ardour/session_vst.cc')
-rw-r--r--libs/ardour/session_vst.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc
index 009a4acc40..2aed71aa9c 100644
--- a/libs/ardour/session_vst.cc
+++ b/libs/ardour/session_vst.cc
@@ -318,7 +318,9 @@ intptr_t Session::vst_callback (
case audioMasterSizeWindow:
SHOW_CALLBACK ("audioMasterSizeWindow");
- // index: width, value: height
+ plug->state()->width = index;
+ plug->state()->height = value;
+ plug->state()->want_resize = 1;
return 0;
case audioMasterGetSampleRate: