From e12a1a75acb8925d6468cc7852e8c46ac604521a Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 23 May 2024 13:25:41 +0100 Subject: [PATCH] ResizableWindow: Always recreate desktop window when updating resizability Windows without titlebars may now be resizable, and therefore must be recreated if resizing is enabled/disabled. --- modules/juce_gui_basics/windows/juce_ResizableWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp b/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp index 9788ba07af..bfd9e356fc 100644 --- a/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp +++ b/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp @@ -284,7 +284,7 @@ void ResizableWindow::setResizable (const bool shouldBeResizable, resizableBorder.reset(); } - if (isUsingNativeTitleBar()) + if (isOnDesktop()) recreateDesktopWindow(); childBoundsChanged (contentComponent);