summaryrefslogtreecommitdiff
path: root/gtk2_ardour/linux_vst_gui_support.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-05 22:15:30 +0100
committerRobin Gareus <robin@gareus.org>2017-03-05 22:15:30 +0100
commit3cba51df26d4c0d489b68f441d0aff9074c1fc27 (patch)
tree82e4bf95ebd041061ae49c8640405f9b0503209c /gtk2_ardour/linux_vst_gui_support.cc
parente9385c2297a58ab61d14be1004369659c6567256 (diff)
Close the LXVST X11 connection for good measure
Diffstat (limited to 'gtk2_ardour/linux_vst_gui_support.cc')
-rw-r--r--gtk2_ardour/linux_vst_gui_support.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/linux_vst_gui_support.cc b/gtk2_ardour/linux_vst_gui_support.cc
index 91ed0db96b..240ddc4c70 100644
--- a/gtk2_ardour/linux_vst_gui_support.cc
+++ b/gtk2_ardour/linux_vst_gui_support.cc
@@ -453,6 +453,10 @@ again:
}
}
+ if (LXVST_XDisplay) {
+ XCloseDisplay(LXVST_XDisplay);
+ LXVST_XDisplay = 0;
+ }
/* some plugin UIs (looking at you, u-he^abique), do set thread-keys
* and free, but not unset them.
@@ -534,6 +538,7 @@ int vstfx_init (void* ptr)
vstfx_error ("** ERROR ** VSTFX: Failed starting GUI event thread");
XCloseDisplay(LXVST_XDisplay);
+ LXVST_XDisplay = 0;
gui_quit = 1;
return -1;