From 5d63c764fdfb404c0f91fbf5ae68501ff9036d89 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 18 Sep 2025 00:45:52 +0200 Subject: [PATCH] Revert "Don't try to clear WS_EX_COMPOSITED for TLWs" This reverts commit 3259d1e2d949e4d155fe4adeba834bd73458f048. --- src/msw/window.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 72528ada81..3b1050dc60 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1654,12 +1654,10 @@ void wxWindowMSW::MSWDisableComposited() { for ( auto win = this; win; win = win->GetParent() ) { - // We never set WS_EX_COMPOSITED on TLWs, and we shouldn't recurse into - // different windows, so we can stop here. + wxMSWWinExStyleUpdater(GetHwndOf(win)).TurnOff(WS_EX_COMPOSITED); + if ( win->IsTopLevel() ) break; - - wxMSWWinExStyleUpdater(GetHwndOf(win)).TurnOff(WS_EX_COMPOSITED); } }