Skip to content

Commit 0943197

Browse files
committed
MacOS: Ensure that Bluetooth MIDI dialogue remains visible when we have always on top windows
This commit uses the same logic for the Bluetooth pairing window that we use for JUCE dialogues and raises its level to NSFloatingWindowLevel when there are always on top windows.
1 parent e053209 commit 0943197

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_mac.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ static void show (id self, SEL, Rectangle<int>* bounds)
111111
}
112112

113113
[getController (self) showWindow: nil];
114+
115+
if (WindowUtils::areThereAnyAlwaysOnTopWindows())
116+
[getController (self).window setLevel: NSFloatingWindowLevel];
114117
}
115118

116119
static void receivedWindowWillClose (id self, SEL, NSNotification*)

0 commit comments

Comments
 (0)