From 36c2d877c2ae2ddb40d0ca74859bac5ca79aec38 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 19 Dec 2020 23:55:21 +0100 Subject: [PATCH] Handle X11 events in Vst3Bridge --- src/wine-host/bridges/vst3.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/wine-host/bridges/vst3.cpp b/src/wine-host/bridges/vst3.cpp index f8e51287..93477f79 100644 --- a/src/wine-host/bridges/vst3.cpp +++ b/src/wine-host/bridges/vst3.cpp @@ -507,11 +507,17 @@ void Vst3Bridge::run() { } void Vst3Bridge::handle_x11_events() { - // TODO: Implement editors + std::lock_guard lock(object_instances_mutex); + + for (const auto& [instance_id, object] : object_instances) { + if (object.editor) { + object.editor->handle_x11_events(); + } + } } void Vst3Bridge::handle_win32_events() { - // TODO: Implement editors + // TODO: Remove this function from the `Editor` MSG msg;