Skip to content

Commit

Permalink
AudioUnitEffectProcessor: Set window style mask
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Nov 15, 2024
1 parent a22ba3e commit 6957beb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/effects/backends/audiounit/audiouniteffectprocessor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,13 @@
NSView* dialogView =
(__bridge NSView*)reinterpret_cast<void*>(dialog->winId());

// Style effect UI as a floating, but non-modal, HUD window
NSWindow* dialogWindow = [dialogView window];
[dialogWindow setStyleMask:NSWindowStyleMaskTitled |
NSWindowStyleMaskClosable | NSWindowStyleMaskResizable |
NSWindowStyleMaskHUDWindow];
[dialogWindow setLevel:NSFloatingWindowLevel];

QString error = "Could not load UI of Audio Unit";
NSView* audioUnitView = createNativeUI(dialog->size().toCGSize(), error);

Expand Down

0 comments on commit 6957beb

Please sign in to comment.