Skip to content

Commit

Permalink
Fix pluginmode bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Jan 19, 2025
1 parent c817412 commit 443ce80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/PluginMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class PluginMode final : public Component
void setWidthAndHeight(float const scale)
{
auto const newWidth = static_cast<int>(width * scale);
auto const newHeight = static_cast<int>(height * scale) + titlebarHeight;
auto const newHeight = static_cast<int>(height * scale) + titlebarHeight + nativeTitleBarHeight;

if (auto* mainWindow = dynamic_cast<PlugDataWindow*>(editor->getTopLevelComponent())) {
#if JUCE_LINUX || JUCE_BSD
Expand Down Expand Up @@ -188,6 +188,7 @@ class PluginMode final : public Component
auto const constrainedNewBounds = windowBounds.withWidth(std::max(windowBounds.getWidth(), 850)).withHeight(std::max(windowBounds.getHeight(), 650));
if (auto* mainWindow = dynamic_cast<PlugDataWindow*>(editor->getTopLevelComponent())) {
editor->constrainer.setSizeLimits(850, 650, 99000, 99000);
mainWindow->getConstrainer()->setSizeLimits(850, 650, 99000, 99000);
#if JUCE_LINUX || JUCE_BSD
OSUtils::updateX11Constraints(getPeer()->getNativeHandle());
#endif
Expand Down

0 comments on commit 443ce80

Please sign in to comment.