diff options
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/edit.cxx | 14 | ||||
-rw-r--r-- | vcl/source/control/imp_listbox.cxx | 10 | ||||
-rw-r--r-- | vcl/source/control/spinfld.cxx | 4 |
3 files changed, 9 insertions, 19 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 29b25a7205ad..70c29cff95b1 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -1876,11 +1876,8 @@ void Edit::GetFocus() ImplShowCursor(); - // FIXME: this is currently only on macOS - // check for other platforms that need similar handling - if( ImplGetSVData()->maNWFData.mbNoFocusRects && - IsNativeWidgetEnabled() && - IsNativeControlSupported( ControlType::Editbox, ControlPart::Entire ) ) + if (IsNativeWidgetEnabled() && + IsNativeControlSupported( ControlType::Editbox, ControlPart::Entire )) { ImplInvalidateOutermostBorder( mbIsSubEdit ? GetParent() : this ); } @@ -1903,11 +1900,8 @@ void Edit::LoseFocus() { if ( !mpSubEdit ) { - // FIXME: this is currently only on macOS - // check for other platforms that need similar handling - if( ImplGetSVData()->maNWFData.mbNoFocusRects && - IsNativeWidgetEnabled() && - IsNativeControlSupported( ControlType::Editbox, ControlPart::Entire ) ) + if (IsNativeWidgetEnabled() && + IsNativeControlSupported(ControlType::Editbox, ControlPart::Entire)) { ImplInvalidateOutermostBorder( mbIsSubEdit ? GetParent() : this ); } diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx index 033f477a9185..531244925062 100644 --- a/vcl/source/control/imp_listbox.cxx +++ b/vcl/source/control/imp_listbox.cxx @@ -2769,9 +2769,8 @@ void ImplWin::Resize() void ImplWin::GetFocus() { ShowFocus( maFocusRect ); - if( ImplGetSVData()->maNWFData.mbNoFocusRects && - IsNativeWidgetEnabled() && - IsNativeControlSupported( ControlType::Listbox, ControlPart::Entire ) ) + if (IsNativeWidgetEnabled() && + IsNativeControlSupported(ControlType::Listbox, ControlPart::Entire)) { vcl::Window* pWin = GetParent()->GetWindow( GetWindowType::Border ); if( ! pWin ) @@ -2786,9 +2785,8 @@ void ImplWin::GetFocus() void ImplWin::LoseFocus() { HideFocus(); - if( ImplGetSVData()->maNWFData.mbNoFocusRects && - IsNativeWidgetEnabled() && - IsNativeControlSupported( ControlType::Listbox, ControlPart::Entire ) ) + if (IsNativeWidgetEnabled() && + IsNativeControlSupported( ControlType::Listbox, ControlPart::Entire)) { vcl::Window* pWin = GetParent()->GetWindow( GetWindowType::Border ); if( ! pWin ) diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 51d66131160a..56d26d81c8f8 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -870,9 +870,7 @@ bool SpinField::PreNotify(NotifyEvent& rNEvt) tools::Rectangle* pLastRect = ImplFindPartRect( GetLastPointerPosPixel() ); if( pRect != pLastRect || (pMouseEvt->IsLeaveWindow() || pMouseEvt->IsEnterWindow()) ) { - // FIXME: this is currently only on macOS - // check for other platforms that need similar handling - if (ImplGetSVData()->maNWFData.mbNoFocusRects && IsNativeWidgetEnabled() && + if (IsNativeWidgetEnabled() && IsNativeControlSupported(ControlType::Editbox, ControlPart::Entire)) { ImplInvalidateOutermostBorder(this); |