summaryrefslogtreecommitdiff
path: root/gtk2_ardour/windows_vst_plugin_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-11-01 19:14:25 +0100
committerRobin Gareus <robin@gareus.org>2018-11-01 20:09:20 +0100
commit3b1d9193ba30bbbe69734d6b2833a8096b60f2a9 (patch)
tree684906392ea47cc5fe9378f8c2772b721324e13d /gtk2_ardour/windows_vst_plugin_ui.cc
parent197f5460dff915846cc2a1ce0d5a2118de4a78a4 (diff)
Prefer key-event dispatch over emulated events for VST plugins.
Diffstat (limited to 'gtk2_ardour/windows_vst_plugin_ui.cc')
-rw-r--r--gtk2_ardour/windows_vst_plugin_ui.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/windows_vst_plugin_ui.cc b/gtk2_ardour/windows_vst_plugin_ui.cc
index c38b545bf5..7d71ef0f78 100644
--- a/gtk2_ardour/windows_vst_plugin_ui.cc
+++ b/gtk2_ardour/windows_vst_plugin_ui.cc
@@ -114,6 +114,10 @@ WindowsVSTPluginUI::package (Gtk::Window& win)
void
WindowsVSTPluginUI::forward_key_event (GdkEventKey* ev)
{
+ if (dispatch_effeditkey (ev)) {
+ return;
+ }
+#ifndef PLATFORM_WINDOWS /* linux + wine ; libs/fst/vstwin.c */
if (ev->type != GDK_KEY_PRESS) {
return;
}
@@ -156,6 +160,7 @@ WindowsVSTPluginUI::forward_key_event (GdkEventKey* ev)
fst->n_pending_keys++;
pthread_mutex_unlock (&fst->lock);
+#endif
}
int