From 56b3c7ca9b50c0f6dcca2e6c4a3312deb46ec647 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 1 Sep 2020 15:01:19 +0100 Subject: AlwaysInputMode::AlwaysInputDisabled newly unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2a6c84f7c12e5a24d442dba1256f27cb5b3db66e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101875 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- vcl/source/window/window.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vcl/source/window') diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index a9fe21d0a7a3..444ec4286571 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -2497,8 +2497,7 @@ void Window::EnableInput( bool bEnable, bool bChild ) static_cast(mpWindowImpl->mpBorderWindow.get())->mpMenuBarWindow->EnableInput( bEnable ); } - if ( (! bEnable && mpWindowImpl->meAlwaysInputMode != AlwaysInputEnabled) || - ( bEnable && mpWindowImpl->meAlwaysInputMode != AlwaysInputDisabled) ) + if ( (!bEnable && mpWindowImpl->meAlwaysInputMode != AlwaysInputEnabled) || bEnable ) { // automatically stop the tracking mode or steal capture // if the window is disabled -- cgit v1.2.3