Browse Source

Only set special plugin ui flags under windows, not wine/bridges

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
1e66d1cb85
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 17 additions and 2 deletions
  1. +17
    -2
      source/utils/CarlaPluginUI.cpp

+ 17
- 2
source/utils/CarlaPluginUI.cpp View File

@@ -750,10 +750,19 @@ public:
// winFlags |= WS_SIZEBOX;
}

fWindow = CreateWindowEx(WS_EX_TOOLWINDOW,
#ifdef BUILDING_CARLA_FOR_WINDOWS
const uint winType = WS_EX_TOOLWINDOW;
const HWND parent = (HWND)parentId;
#else
const uint winType = WS_EX_DLGMODALFRAME;
const HWND parent = nullptr;
#endif

fWindow = CreateWindowEx(winType,
classNameBuf, "Carla Plugin UI", winFlags,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
(HWND)parentId, nullptr, hInstance, nullptr);
parent, nullptr,
hInstance, nullptr);

if (fWindow == nullptr) {
const DWORD errorCode = ::GetLastError();
@@ -766,8 +775,14 @@ public:

SetWindowLongPtr(fWindow, GWLP_USERDATA, (LONG_PTR)this);

#ifdef BUILDING_CARLA_FOR_WINDOWS
if (parentId != 0)
setTransientWinId(parentId);
#else
return;
// unused
(void)parentId;
#endif
}

~WindowsPluginUI() override


Loading…
Cancel
Save