From 4143ace55ce77f806db8e9efb39b2ab7d375b11e Mon Sep 17 00:00:00 2001 From: George Reales Date: Wed, 30 Mar 2022 17:22:35 +0200 Subject: [PATCH] Update PluginEditor.h Fix macOS GUI windows always on top after JUCE 6.1.6 update --- Source/PluginEditor.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/PluginEditor.h b/Source/PluginEditor.h index 2ea0fc9..988e513 100644 --- a/Source/PluginEditor.h +++ b/Source/PluginEditor.h @@ -85,11 +85,7 @@ public: void buttonClicked (Button *) override; //bool keyPressed(const KeyPress & press) override; void timerCallback() override { -#if JUCE_WINDOWS || JUCE_LINUX - // No run timer to grab component on window -#else - this->grabKeyboardFocus(); -#endif + countTimer ++; if (countTimer == 4 && needNotifytoHost){ countTimer = 0;