aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-29 10:19:28 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-29 10:19:28 +0200
commitc0ca27488d0902ba400037161ad32edbbd4a150d (patch)
tree0228ff3f264d737b8fc13d665be5f7af0fb812cb
parent43714b720db555cef1e19c77409ccd39da12fb64 (diff)
downloadsherlock.lv2-c0ca27488d0902ba400037161ad32edbbd4a150d.tar.xz
do not call ui_closed from _kx_hide.
-rw-r--r--sandbox_ui.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sandbox_ui.c b/sandbox_ui.c
index 9acadea..559ebc9 100644
--- a/sandbox_ui.c
+++ b/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