From 4b982ef895e1e5d36b0be0b20e7a2810e3f16945 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 7 Mar 2017 03:22:13 +0100 Subject: Prepare moving to a dedicated x-thread signal for VST UI resizing (this changes the internal API, pending follow-up GUI update) --- libs/ardour/session_vst.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'libs/ardour/session_vst.cc') diff --git a/libs/ardour/session_vst.cc b/libs/ardour/session_vst.cc index db097fa5b0..5ba77a9a6e 100644 --- a/libs/ardour/session_vst.cc +++ b/libs/ardour/session_vst.cc @@ -337,9 +337,14 @@ intptr_t Session::vst_callback ( case audioMasterSizeWindow: SHOW_CALLBACK ("audioMasterSizeWindow"); if (plug && plug->state()) { - plug->state()->width = index; - plug->state()->height = value; - plug->state()->want_resize = 1; + if (plug->state()->width != index || plug->state()->height != value) { + plug->state()->width = index; + plug->state()->height = value; +#ifndef NDEBUG + printf ("audioMasterSizeWindow %d %d\n", plug->state()->width, plug->state()->height); +#endif + plug->VSTSizeWindow (); /* EMIT SIGNAL */ + } } return 0; -- cgit v1.2.3