aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_console.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-01-26 18:26:10 +0100
committerDavid Robillard <d@drobilla.net>2016-04-25 15:08:16 -0400
commit56c68bc8f97c3f184a4e463eb0e693bf21848856 (patch)
tree52cba54faaea122a8edd22c50a2a7c5f1ceeabe7 /src/jalv_console.c
parentea2d97106a6ac4aaba09a2628806797762c61722 (diff)
downloadjalv-56c68bc8f97c3f184a4e463eb0e693bf21848856.tar.gz
jalv-56c68bc8f97c3f184a4e463eb0e693bf21848856.tar.bz2
jalv-56c68bc8f97c3f184a4e463eb0e693bf21848856.zip
Fix broken plugin <-> UI comm in jalv_console
Fixes broken plugin <-> UI communication in jalv_console when run on top of showInterface (-s).
Diffstat (limited to 'src/jalv_console.c')
-rw-r--r--src/jalv_console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c
index ef02d8b..fdb3bde 100644
--- a/src/jalv_console.c
+++ b/src/jalv_console.c
@@ -157,6 +157,7 @@ jalv_process_command(Jalv* jalv, const char* cmd)
int
jalv_open_ui(Jalv* jalv)
{
+ jalv->has_ui = true;
const LV2UI_Idle_Interface* idle_iface = NULL;
const LV2UI_Show_Interface* show_iface = NULL;
if (jalv->ui && jalv->opts.show_ui) {
@@ -172,6 +173,7 @@ jalv_open_ui(Jalv* jalv)
// Drive idle interface until interrupted
while (!zix_sem_try_wait(jalv->done)) {
+ jalv_update(jalv);
if (idle_iface->idle(suil_instance_get_handle(jalv->ui_instance))) {
break;
}