From 4c5c336e654a4bb102a43e8da7551b3c814cb03d Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 10 Jun 2024 11:07:00 +0100 Subject: [PATCH] Windowing: Re-enable rounded corners on Windows 11 --- modules/juce_gui_basics/native/juce_Windowing_windows.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp index 574eda9562..1e8f601451 100644 --- a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp +++ b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp @@ -2491,11 +2491,6 @@ private: static constexpr MARGINS margins { 1, 1, 0, 0 }; ::DwmExtendFrameIntoClientArea (hwnd, &margins); ::SetWindowPos (hwnd, nullptr, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER); - - // Disable rounded corners on Windows 11 for custom windows with no titlebar, - // because window borders look weird when they get rounded away. - const auto pref = DWMWCP_DONOTROUND; - DwmSetWindowAttribute (hwnd, DWMWA_WINDOW_CORNER_PREFERENCE, &pref, sizeof (pref)); } #if JUCE_DEBUG