summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-28 12:09:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-10-28 13:53:59 +0200
commit50ce65655d8ed834971f7b8d727ac966a841ea12 (patch)
treec4decb0cd4151eeada20dd15823674940082cc8a
parent7c754a226e63415a4f95be47ba30bde5029fee21 (diff)
invalidate slider on gaining/losing focus so could show a macOS focus ring
Change-Id: Ief8d3f8152ccc23bd65afb4e9e92cf4190f6bb37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141968 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/control/slider.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index ca3903b37091..3a119ea4f5e5 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -792,7 +792,8 @@ void Slider::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( nType == StateChangedType::Enable )
+ else if ( nType == StateChangedType::Enable ||
+ nType == StateChangedType::ControlFocus )
{
if ( IsReallyVisible() && IsUpdateMode() )
{