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 lines3456789101112138 unmodified lines222324252627282930313233343536372 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 linesvoid 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 launchid nsApp = ((id(*)(id, SEL))objc_msgSend)((id)objc_getClass("NSApplication"),sel_registerName("sharedApplication"));((void(*)(id, SEL, long))objc_msgSend)(nsApp,sel_registerName("setActivationPolicy:"), 1);#endifauto args = juce::StringArray::fromTokens(commandLine, " ", "\"");int parentPid = 0;2 unmodified lines3456788 unmodified lines1718192021222 unmodified lines#include <juce_gui_basics/juce_gui_basics.h>#include <juce_events/juce_events.h>#include "SharedAudioBuffer.h"#include "IPCProtocol.h"#include "Constants.h"8 unmodified linesvoid initialise(const juce::String& commandLine) override{auto args = juce::StringArray::fromTokens(commandLine, " ", "\"");int parentPid = 0;
Source/Helper/main.cpp-15