fix: restore setAlwaysOnTop(true) — fixes GUI opening in separate space in fullscreen
Browse filesRoot cause: commit 0632681 removed setAlwaysOnTop(true) and replaced it
with manual objc_msgSend level tricks. Those tricks don't keep the window
in the same Space as Ableton when fullscreen.
Fix: put back setAlwaysOnTop(true) + keep the X button fix (closeButtonPressed
hides window instead of quitting). Removed all objc_msgSend hacks.
3 unmodified lines45678910111278910248 unmodified lines2592602612622632642653 unmodified lines#include <pthread.h>#include <sched.h>
#if JUCE_MAC#include <objc/objc.h>#include <objc/message.h>#endif
// Custom window// Custom window — X button hides instead of quittingclass PluginGuiWindow : public juce::DocumentWindow{public:248 unmodified lines guiWindow = std::make_unique<PluginGuiWindow>(plugin->getName()); guiWindow->setContentOwned(editor, true); guiWindow->setResizable(true, true); guiWindow->setAlwaysOnTop(true); guiWindow->centreWithSize(editor->getWidth(), editor->getHeight()); guiWindow->setVisible(true); });Source/Helper/HelperPluginHost.cpp+2-6