This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 1a68a2e5109a2fe53dc18d2b51990677ae2de7f2
Author: Jim Jagielski <[email protected]>
AuthorDate: Mon Nov 16 12:33:59 2026 -0500

    vcl: refresh the macOS backing scale when a window is shown
    
    A window made for one screen and first shown on another may not get
    windowDidChangeBackingProperties:, and would keep the old scale.
    Belts and Braces here, since this _should be_ unneeded.
---
 main/vcl/aqua/source/window/salframe.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/main/vcl/aqua/source/window/salframe.cxx 
b/main/vcl/aqua/source/window/salframe.cxx
index d7c4578372..794524a8cd 100644
--- a/main/vcl/aqua/source/window/salframe.cxx
+++ b/main/vcl/aqua/source/window/salframe.cxx
@@ -479,6 +479,10 @@ void AquaSalFrame::Show(sal_Bool bVisible, sal_Bool 
bNoActivate)
         else
             [mpNSWindow makeKeyAndOrderFront: NSApp];
 
+        // a window first shown on another screen need not report a backing 
change
+        if( UpdateBackingScale() )
+            SendPaintEvent();
+
         if( mpParent )
         {
             /* #i92674# #i96433# we do not want an invisible parent to show up 
(which adding a visible

Reply via email to