From 0943197e23c04d781a6e62241c6f27d37ef5435e Mon Sep 17 00:00:00 2001 From: attila Date: Wed, 16 Apr 2025 11:24:55 +0200 Subject: [PATCH] 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. --- .../native/juce_BluetoothMidiDevicePairingDialogue_mac.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_mac.mm b/modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_mac.mm index 2e023dc6b8..103c5c17d8 100644 --- a/modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_mac.mm +++ b/modules/juce_audio_utils/native/juce_BluetoothMidiDevicePairingDialogue_mac.mm @@ -111,6 +111,9 @@ private: } [getController (self) showWindow: nil]; + + if (WindowUtils::areThereAnyAlwaysOnTopWindows()) + [getController (self).window setLevel: NSFloatingWindowLevel]; } static void receivedWindowWillClose (id self, SEL, NSNotification*)