rounded window on load

This commit is contained in:
Nayla Hanegan 2024-05-23 17:36:08 -04:00
commit c9569fae24
2 changed files with 0 additions and 20 deletions

View file

@ -136,15 +136,6 @@ void RenderWidget::dropEvent(QDropEvent* event)
void RenderWidget::OnHandleChanged(void* handle)
{
if (handle)
{
#ifdef _WIN32
// Remove rounded corners from the render window on Windows 11
const DWM_WINDOW_CORNER_PREFERENCE corner_preference = DWMWCP_DONOTROUND;
DwmSetWindowAttribute(reinterpret_cast<HWND>(handle), DWMWA_WINDOW_CORNER_PREFERENCE,
&corner_preference, sizeof(corner_preference));
#endif
}
Host::GetInstance()->SetRenderHandle(handle);
}