Skip to content

Commit

Permalink
More plugin compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Nov 10, 2023
1 parent c683017 commit 820f85e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ PluginEditor::PluginEditor(PluginProcessor& p)
// NEVER touch pluginConstrainer outside of plugin mode!
pluginConstrainer.setMinimumSize(850, 650);
setUseBorderResizer(true);
#if JUCE_LINUX
OSUtils::updateX11Constraints(getPeer()->getNativeHandle());
#endif
}
else {
constrainer.setMinimumSize(850, 650);

#if JUCE_LINUX
OSUtils::updateX11Constraints(getPeer()->getNativeHandle());
#endif
}



mainMenuButton.setButtonText(Icons::Menu);
Expand Down
3 changes: 1 addition & 2 deletions Source/Utility/OSUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <juce_gui_basics/juce_gui_basics.h>


#include "Config.h"
#include "OSUtils.h"

#if defined(__APPLE__)
Expand Down Expand Up @@ -171,7 +170,7 @@ OSUtils::KeyboardLayout OSUtils::getKeyboardLayout()

void OSUtils::updateX11Constraints(void* handle)
{
if(ProjectInfo::isStandalone) {
if(handle) {
juce::XWindowSystem::getInstance()->updateConstraints(reinterpret_cast<::Window>(handle));
}
}
Expand Down

0 comments on commit 820f85e

Please sign in to comment.