This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch AOO50X in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 5e1b8a98d6dcdb81c5fdf7f194f4ba80fa9844ee Author: Jim Jagielski <[email protected]> AuthorDate: Mon Nov 16 13:01:04 2026 -0500 vcl: keep macOS XOR drawing on the mask after a window's layer is remade A resize during XOR mode left the remaining XOR drawing on the window itself(!), where it could not be XORed away again. --- main/vcl/aqua/source/gdi/salgdiutils.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main/vcl/aqua/source/gdi/salgdiutils.cxx b/main/vcl/aqua/source/gdi/salgdiutils.cxx index eb281d719d..27fa18acfd 100644 --- a/main/vcl/aqua/source/gdi/salgdiutils.cxx +++ b/main/vcl/aqua/source/gdi/salgdiutils.cxx @@ -224,7 +224,14 @@ bool AquaSalGraphics::CheckContext() // re-enable XOR emulation for the new context if( mpXorEmulation ) + { mpXorEmulation->SetTarget( mnWidth, mnHeight, mnBitmapDepth, mrContext, maLayer.get() ); + if( mpXorEmulation->IsEnabled() ) + { + mrContext = mpXorEmulation->GetMaskContext(); + SetState(); + } + } } }
