On Windows 11, top-level windows get rounded corners from DWM. Some apps need square corners, or small rounded ones, while keeping the native title bar.
Proposal: Window::SetCornerPreference(...) backed by DwmSetWindowAttribute(DWMWA_WINDOW_CORNER_PREFERENCE) (default / do-not-round / round / round-small). It's a no-op elsewhere; on macOS, SetShape() or a hidden title bar are the alternatives.
Background:
On Windows 11, top-level windows get rounded corners from DWM. Some apps need square corners, or small rounded ones, while keeping the native title bar.
Proposal:
Window::SetCornerPreference(...)backed byDwmSetWindowAttribute(DWMWA_WINDOW_CORNER_PREFERENCE)(default / do-not-round / round / round-small). It's a no-op elsewhere; on macOS,SetShape()or a hidden title bar are the alternatives.Background: