summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-01 15:01:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-02 12:38:31 +0200
commit56b3c7ca9b50c0f6dcca2e6c4a3312deb46ec647 (patch)
tree8b7cdf84ca26636a52ff8de40edee427a2f1c4c1 /vcl/source/window
parent9dbfee0fe5a90191b3bdd7f7247bcaf08642e808 (diff)
AlwaysInputMode::AlwaysInputDisabled newly unused
Change-Id: I2a6c84f7c12e5a24d442dba1256f27cb5b3db66e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101875 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/window.cxx3
1 files changed, 1 insertions, 2 deletions
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<ImplBorderWindow*>(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