Skip to content

Commit

Permalink
Fixed potential plugin crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Nov 10, 2023
1 parent 820f85e commit 8a13df3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/PluginMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ class PluginMode : public Component {
}

#if JUCE_LINUX
OSUtils::updateX11Constraints(getPeer()->getNativeHandle());
if(ProjectInfo::isStandalone) {
OSUtils::updateX11Constraints(getPeer()->getNativeHandle());
}
#endif
editor->setSize(newWidth, newHeight);
setBounds(0, 0, newWidth, newHeight);
Expand All @@ -166,9 +168,6 @@ class PluginMode : public Component {
mainWindow->setBoundsConstrained(windowBounds.withPosition(correctedPosition));
} else {
editor->pluginConstrainer.setSizeLimits(850, 650, 99000, 99000);
#if JUCE_LINUX
OSUtils::updateX11Constraints(getPeer()->getNativeHandle());
#endif
editor->setBounds(windowBounds);
}

Expand Down

0 comments on commit 8a13df3

Please sign in to comment.