aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-29 10:22:12 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-29 10:22:12 +0200
commit41b0552a9f36c00333ef2b31154ca0c52eb6e459 (patch)
treec7800d5dbbd6913ca13a09d86b690c37e75d350d
parente9ab2ffcd4ec13f995e19b3765c1920cda5d3afb (diff)
parentc0ca27488d0902ba400037161ad32edbbd4a150d (diff)
downloadsherlock.lv2-41b0552a9f36c00333ef2b31154ca0c52eb6e459.tar.xz
Merge commit 'c0ca27488d0902ba400037161ad32edbbd4a150d'
-rw-r--r--sandbox_ui.lv2/sandbox_ui.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sandbox_ui.lv2/sandbox_ui.c b/sandbox_ui.lv2/sandbox_ui.c
index 9acadea..559ebc9 100644
--- a/sandbox_ui.lv2/sandbox_ui.c
+++ b/sandbox_ui.lv2/sandbox_ui.c
@@ -166,9 +166,6 @@ _hide_cb(LV2UI_Handle instance)
remove(&handle->socket_path[6]);
*/
- if(handle->kx.host && handle->kx.host->ui_closed)
- handle->kx.host->ui_closed(handle->controller);
-
handle->done = 1;
return 0;
@@ -194,14 +191,12 @@ _idle_cb(LV2UI_Handle instance)
if(errno == ECHILD)
{
handle->pid = -1; // invalidate
- //_hide_cb(ui);
handle->done = 1;
}
}
else if( (res > 0) && WIFEXITED(status) )
{
handle->pid = -1; // invalidate
- //_hide_cb(ui);
handle->done = 1;
}
}
@@ -226,7 +221,11 @@ _kx_run(LV2_External_UI_Widget *widget)
plughandle_t *handle = (void *)widget - offsetof(plughandle_t, kx.widget);
if(_idle_cb(handle))
+ {
+ if(handle->kx.host && handle->kx.host->ui_closed)
+ handle->kx.host->ui_closed(handle->controller);
_hide_cb(handle);
+ }
}
static inline void