mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Prefer key-event dispatch over emulated events for VST plugins.
This commit is contained in:
parent
197f5460df
commit
3b1d9193ba
2 changed files with 8 additions and 3 deletions
|
|
@ -141,10 +141,10 @@ LXVSTPluginUI::forward_key_event (GdkEventKey* gdk_key)
|
|||
xev.xany.send_event = true; /* pretend we are using XSendEvent */
|
||||
xev.xany.display = GDK_WINDOW_XDISPLAY (gdk_window->gobj());
|
||||
|
||||
if (!_vst->state()->eventProc) {
|
||||
XSendEvent (xev.xany.display, xev.xany.window, TRUE, mask, &xev);
|
||||
} else {
|
||||
if (_vst->state()->eventProc) {
|
||||
_vst->state()->eventProc (&xev);
|
||||
} else if (!dispatch_effeditkey (gdk_key)) {
|
||||
XSendEvent (xev.xany.display, xev.xany.window, TRUE, mask, &xev);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue