revert main.cpp — remove NSApplicationActivationPolicyAccessory (this broke the fullscreen behavior)
Browse filesThe original code had NO activation policy override. macOS was showing
the Helper window in Ableton's Space by default. Adding Accessory policy
caused macOS to treat it differently and put it in a separate Space.
Going back to the original main.cpp that was working before the close-button fix.
2 unmodified lines3456789106788 unmodified lines171819252627282930313233342021222 unmodified lines#include <juce_gui_basics/juce_gui_basics.h>#include <juce_events/juce_events.h>
#if JUCE_MAC#include <objc/objc.h>#include <objc/message.h>#endif
#include "SharedAudioBuffer.h"#include "IPCProtocol.h"#include "Constants.h"8 unmodified lines
void initialise(const juce::String& commandLine) override {#if JUCE_MAC // SET ACTIVATION POLICY BEFORE ANYTHING ELSE // Policy 1 = NSApplicationActivationPolicyAccessory // This prevents: Dock icon, Cmd+Tab entry, focus stealing on launch id nsApp = ((id(*)(id, SEL))objc_msgSend)((id)objc_getClass("NSApplication"), sel_registerName("sharedApplication")); ((void(*)(id, SEL, long))objc_msgSend)(nsApp, sel_registerName("setActivationPolicy:"), 1);#endif
auto args = juce::StringArray::fromTokens(commandLine, " ", "\"");
int parentPid = 0;Source/Helper/main.cpp-15