commit 33967164d989851b41964fee915f29dcdbaf1423
parent d0413dfbd6580fcb89dcbee11cad9319975474cc
Author: falkTX <falktx@falktx.com>
Date: Wed, 29 Dec 2021 13:52:15 +0000
Give focus to VST3 UI when instructed by the host
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/distrho/src/DistrhoUIVST3.cpp b/distrho/src/DistrhoUIVST3.cpp
@@ -242,6 +242,8 @@ public:
v3_result onFocus(const bool state)
{
+ if (state)
+ fUI.focus();
fUI.notifyFocusChanged(state);
return V3_OK;
}