aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-02-24 01:56:33 +0100
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-02-24 01:56:33 +0100
commit9161569bd6355dcf14e8a37fe352007e3f14942f (patch)
tree132712a9b2855b9aa47504971a01b02439979037
parentd601543ce37dca9f8d7adc6b5f4ffd9f458005f7 (diff)
downloadsynthpod-9161569bd6355dcf14e8a37fe352007e3f14942f.tar.xz
sbox: add bloody hack for lsp-plugin UIs.
-rw-r--r--bin/synthpod_sandbox_x11.c13
-rw-r--r--plugins/synthpod_common_nk.c3
2 files changed, 14 insertions, 2 deletions
diff --git a/bin/synthpod_sandbox_x11.c b/bin/synthpod_sandbox_x11.c
index 3fbd409..ec0ca57 100644
--- a/bin/synthpod_sandbox_x11.c
+++ b/bin/synthpod_sandbox_x11.c
@@ -138,6 +138,12 @@ _init(sandbox_slave_t *sb, void *data)
app->idle_iface = sandbox_slave_extension_data(sb, LV2_UI__idleInterface);
app->resize_iface = sandbox_slave_extension_data(sb, LV2_UI__resize);
+ // work-around for broken lsp-plugins
+ if((uintptr_t)app->resize_iface == (uintptr_t)app->idle_iface)
+ {
+ app->resize_iface = NULL;
+ }
+
cross_clock_init(&app->clk_real, CROSS_CLOCK_REALTIME);
return 0;
@@ -204,8 +210,11 @@ _run(sandbox_slave_t *sb, float update_rate, void *data)
if(dd <= ns)
{
- if(app->idle_iface->idle(app->handle))
- atomic_store_explicit(&done, true, memory_order_relaxed);
+ if(app->idle_iface)
+ {
+ if(app->idle_iface->idle(app->handle))
+ atomic_store_explicit(&done, true, memory_order_relaxed);
+ }
}
to.tv_nsec += ns;
diff --git a/plugins/synthpod_common_nk.c b/plugins/synthpod_common_nk.c
index cf9b288..ea40312 100644
--- a/plugins/synthpod_common_nk.c
+++ b/plugins/synthpod_common_nk.c
@@ -3026,6 +3026,9 @@ _mod_ui_run(mod_ui_t *mod_ui, bool sync)
if(pid == 0) // child
{
char *const args [] = {
+#if 0
+ "gdb", "--args",
+#endif
(char *)exec_uri,
"-n", (char *)plugin_urn,
"-p", (char *)plugin_uri,