From afafcc8fa26dbe39ffa76bdee5807b28bb0efafc Mon Sep 17 00:00:00 2001 From: roytam1 Date: Fri, 16 Aug 2024 11:22:12 +0800 Subject: [PATCH] partly revert "Bug 1256547: When the DWM is disabled don't force presentation. r=milan" as this crashes in XP-x64. --- widget/windows/nsWindowGfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/windows/nsWindowGfx.cpp b/widget/windows/nsWindowGfx.cpp index 6510fe9c0a..3693f866df 100644 --- a/widget/windows/nsWindowGfx.cpp +++ b/widget/windows/nsWindowGfx.cpp @@ -528,7 +528,7 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel) { result = listener->PaintWindow( this, LayoutDeviceIntRegion::FromUnknownRegion(region)); - if (!gfxEnv::DisableForcePresent() && gfxWindowsPlatform::GetPlatform()->DwmCompositionEnabled()) { + if (!gfxEnv::DisableForcePresent() /*&& gfxWindowsPlatform::GetPlatform()->DwmCompositionEnabled()*/) { nsCOMPtr event = NS_NewRunnableMethod(this, &nsWindow::ForcePresent); NS_DispatchToMainThread(event);