summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorThorsten Wagner <thorsten.wagner.4@gmail.com>2020-08-13 10:57:59 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2020-09-02 12:21:53 +0200
commit7e7af0658d9c769d9e5b3614e5f3fef3187ea833 (patch)
treecbc11431686f0cf392e0a67e04b399b9ec918431 /vcl/osx
parent6a915073f8400fd34274cf311994bbc9bf498ab6 (diff)
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@libreoffice.org>
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salnativewidgets.cxx2
1 files changed, 1 insertions, 1 deletions
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;