diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-24 17:18:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-24 18:22:11 +0100 |
commit | a283847a95dd8935dec687d91709604d96636a34 (patch) | |
tree | e24b03594f64d7552c52db89a618c79b39456ba3 /vcl | |
parent | 1fe4f041aeef2fcabd90bc07ab6a5ee5aba1dd59 (diff) |
gtk3: single click with selection set doesn't unselect
this is a safe backportable fix, the unconditional
nFlags |= SelectionEngineFlags::CMDEVT
looks the real dubious thing to me, but only the gtk3 backend has swipe support
so just returning immediately on a swipe definitely ok
Change-Id: Iade26d0d9260ce76dfb2766ac9e5ca9fa9275bf4
Reviewed-on: https://gerrit.libreoffice.org/48527
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/seleng.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx index c911a9059551..c545824436cd 100644 --- a/vcl/source/window/seleng.cxx +++ b/vcl/source/window/seleng.cxx @@ -342,7 +342,7 @@ void SelectionEngine::Reset() void SelectionEngine::Command( const CommandEvent& rCEvt ) { // Timer aWTimer is active during enlarging a selection - if ( !pFunctionSet || !pWin || aWTimer.IsActive() ) + if ( !pFunctionSet || !pWin || aWTimer.IsActive() || rCEvt.GetCommand() == CommandEventId::Swipe ) return; aWTimer.Stop(); nFlags |= SelectionEngineFlags::CMDEVT; |