summaryrefslogtreecommitdiffstats
path: root/vcl/source/window/brdwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/brdwin.cxx')
-rw-r--r--vcl/source/window/brdwin.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index 6617de6414b3..3e8ff6f332d2 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -662,17 +662,8 @@ void ImplSmallBorderWindowView::DrawWindow(vcl::RenderContext& rRenderContext, c
if (!mpBorderWindow->IsEnabled())
nState &= ~ControlState::ENABLED;
- if (mpBorderWindow->HasFocus())
+ if (mpBorderWindow->HasFocus() || pCtrl->HasFocus() || pCtrl->HasChildPathFocus())
nState |= ControlState::FOCUSED;
- else if(mbNWFBorder)
- {
- // FIXME: this is currently only on macOS, see if other platforms can profit
-
- // FIXME: for macOS focus rings all controls need to support GetNativeControlRegion
- // for the dropdown style
- if (pCtrl->HasFocus() || pCtrl->HasChildPathFocus())
- nState |= ControlState::FOCUSED;
- }
bool bMouseOver = false;
vcl::Window *pCtrlChild = pCtrl->GetWindow(GetWindowType::FirstChild);