2
0
Fork 0

Update PluginEditor.h

Fix macOS GUI windows always on top after JUCE 6.1.6 update
This commit is contained in:
George Reales 2022-03-30 17:22:35 +02:00
parent 443fa4cd18
commit 4143ace55c

View file

@ -85,11 +85,7 @@ public:
void buttonClicked (Button *) override; void buttonClicked (Button *) override;
//bool keyPressed(const KeyPress & press) override; //bool keyPressed(const KeyPress & press) override;
void timerCallback() override { void timerCallback() override {
#if JUCE_WINDOWS || JUCE_LINUX
// No run timer to grab component on window
#else
this->grabKeyboardFocus();
#endif
countTimer ++; countTimer ++;
if (countTimer == 4 && needNotifytoHost){ if (countTimer == 4 && needNotifytoHost){
countTimer = 0; countTimer = 0;