From 47475d66d646e409729e13d2d98191b7e6ca71bc Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 28 Dec 2014 10:00:47 +0000 Subject: [PATCH] Pass plugin-bridge process Id to window transient matching --- source/backend/plugin/CarlaPluginBridge.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/backend/plugin/CarlaPluginBridge.cpp b/source/backend/plugin/CarlaPluginBridge.cpp index a2d6a3e17..679dfafe6 100644 --- a/source/backend/plugin/CarlaPluginBridge.cpp +++ b/source/backend/plugin/CarlaPluginBridge.cpp @@ -496,6 +496,13 @@ public: fLabel = "\"\""; } + uintptr_t getProcessPID() const noexcept + { + CARLA_SAFE_ASSERT_RETURN(fProcess != nullptr, 0); + + return (uintptr_t)fProcess->getPID(); + } + protected: void run() { @@ -2262,11 +2269,18 @@ public: // ------------------------------------------------------------------- + uintptr_t getUiBridgeProcessId() const noexcept override + { + return fBridgeThread.getProcessPID(); + } + const void* getExtraStuff() const noexcept override { return fBridgeBinary.isNotEmpty() ? fBridgeBinary.buffer() : nullptr; } + // ------------------------------------------------------------------- + bool init(const char* const filename, const char* const name, const char* const label, const char* const bridgeBinary) { CARLA_SAFE_ASSERT_RETURN(pData->engine != nullptr, false);