LXVST2: only call effEditIdle after realizing the GUI

This fixes an issue with some plugin-wrappers, notably
ff021d0581
This commit is contained in:
Robin Gareus 2020-11-14 02:49:24 +01:00
parent fec37c58bd
commit f7cb1b0b48
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 6 additions and 1 deletions

View File

@ -446,7 +446,12 @@ again:
/*Call the editor Idle function in the plugin*/
vstfx->plugin->dispatcher (vstfx->plugin, effEditIdle, 0, 0, NULL, 0);
if(vstfx->been_activated) {
/* some plugins have issues if effEditIdle is called w/o an editor.
* This may happen due to async X11 requests, delaying the call to effEditOpen.
*/
vstfx->plugin->dispatcher (vstfx->plugin, effEditIdle, 0, 0, NULL, 0);
}
if (vstfx->wantIdle) {
vstfx->plugin->dispatcher (vstfx->plugin, 53, 0, 0, NULL, 0);