From 423784089bad57e0d0996e9f1509bff00bce53ed Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 14 Sep 2020 02:56:56 +0100 Subject: [PATCH] Do not put plugin UIs on top in Windows; Fix window type Fixes #1116 Signed-off-by: falkTX --- source/utils/CarlaPluginUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/utils/CarlaPluginUI.cpp b/source/utils/CarlaPluginUI.cpp index 23f947661..0e6896113 100644 --- a/source/utils/CarlaPluginUI.cpp +++ b/source/utils/CarlaPluginUI.cpp @@ -750,10 +750,10 @@ public: // winFlags |= WS_SIZEBOX; } - fWindow = CreateWindowEx(WS_EX_TOPMOST, + fWindow = CreateWindowEx(WS_EX_TOOLWINDOW, classNameBuf, "Carla Plugin UI", winFlags, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, - nullptr, nullptr, hInstance, nullptr); + (HWND)parentId, nullptr, hInstance, nullptr); if (fWindow == nullptr) { const DWORD errorCode = ::GetLastError();