summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/settings.hxx3
-rw-r--r--vcl/source/window/winproc.cxx6
2 files changed, 1 insertions, 8 deletions
diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx
index f09e50608e76..b62f1b2d0522 100644
--- a/include/vcl/settings.hxx
+++ b/include/vcl/settings.hxx
@@ -53,13 +53,12 @@ namespace vcl {
enum class MouseSettingsOptions
{
NONE = 0x00,
- AutoFocus = 0x01,
AutoCenterPos = 0x02,
AutoDefBtnPos = 0x04,
};
namespace o3tl
{
- template<> struct typed_flags<MouseSettingsOptions> : is_typed_flags<MouseSettingsOptions, 0x07> {};
+ template<> struct typed_flags<MouseSettingsOptions> : is_typed_flags<MouseSettingsOptions, 0x06> {};
}
enum class MouseFollowFlags
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index d6f1b1e18bc2..72aba0a4362d 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -666,12 +666,6 @@ bool ImplHandleMouseEvent( const VclPtr<vcl::Window>& xWindow, MouseNotifyEvent
}
else
{
- // Auto-ToTop
- if (!pSVData->mpWinData->mpCaptureWin
- && (pChild->GetSettings().GetMouseSettings().GetOptions()
- & MouseSettingsOptions::AutoFocus))
- pChild->ToTop( ToTopFlags::NoGrabFocus );
-
if( pChild->IsDisposed() )
bCallHelpRequest = false;
else