Let VST plugins know that we implement plugin window resizing.
authorStefan Westerfeld <stefan@space.twc.de>
Wed, 8 Aug 2018 11:25:04 +0000 (13:25 +0200)
committerStefan Westerfeld <stefan@space.twc.de>
Wed, 8 Aug 2018 11:25:04 +0000 (13:25 +0200)
libs/ardour/session_vst.cc

index 2720334ad588cd61e7b6edd8215754592f456e01..c91bdcf235e6cbd14c1679dc36b462e962a1f1fe 100644 (file)
@@ -50,7 +50,8 @@ const char* Session::vst_can_do_strings[] = {
        X_("receiveVstMidiEvent"),
        X_("supportShell"),
        X_("shellCategory"),
-       X_("shellCategorycurID")
+       X_("shellCategorycurID"),
+       X_("sizeWindow")
 };
 const int Session::vst_can_do_string_count = sizeof (vst_can_do_strings) / sizeof (char*);
 
@@ -346,7 +347,7 @@ intptr_t Session::vst_callback (
                                plug->VSTSizeWindow (); /* EMIT SIGNAL */
                        }
                }
-               return 0;
+               return 1;
 
        case audioMasterGetSampleRate:
                SHOW_CALLBACK ("audioMasterGetSampleRate");