1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Windowing: Re-enable rounded corners on Windows 11

This commit is contained in:
reuk 2024-06-10 11:07:00 +01:00
parent 9817a2bb66
commit 4c5c336e65
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -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