[Libreoffice-commits] core.git: vcl/osx

Thorsten Wagner (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 2 10:22:35 UTC 2020


 vcl/osx/salnativewidgets.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7e7af0658d9c769d9e5b3614e5f3fef3187ea833
Author:     Thorsten Wagner <thorsten.wagner.4 at gmail.com>
AuthorDate: Thu Aug 13 10:57:59 2020 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Sep 2 12:21:53 2020 +0200

    tdf#133564: Text coloring of buttons within non key windows on macOS reworked
    
    Change-Id: Ida31f59c853eb3312175cd6dd99b7b1006e014a7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100650
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index e01470a58e76..7776009e9704 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -237,7 +237,7 @@ UInt32 AquaSalGraphics::getState(ControlState nState)
     // To handle these windows correctly, parent frame's key window state is considered here additionally.
 
     const bool bDrawActive = mpFrame == nullptr || [mpFrame->getNSWindow() isKeyWindow]
-                             || (mpFrame->mpParent != nullptr && [mpFrame->mpParent->getNSWindow() isKeyWindow]);
+                             || mpFrame->mpParent == nullptr || [mpFrame->mpParent->getNSWindow() isKeyWindow];
     if (!(nState & ControlState::ENABLED) || !bDrawActive)
     {
         return kThemeStateInactive;


More information about the Libreoffice-commits mailing list