Kaydet (Commit) a283847a authored tarafından Caolán McNamara's avatar Caolán McNamara

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/48527Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 1fe4f041
...@@ -342,7 +342,7 @@ void SelectionEngine::Reset() ...@@ -342,7 +342,7 @@ void SelectionEngine::Reset()
void SelectionEngine::Command( const CommandEvent& rCEvt ) void SelectionEngine::Command( const CommandEvent& rCEvt )
{ {
// Timer aWTimer is active during enlarging a selection // Timer aWTimer is active during enlarging a selection
if ( !pFunctionSet || !pWin || aWTimer.IsActive() ) if ( !pFunctionSet || !pWin || aWTimer.IsActive() || rCEvt.GetCommand() == CommandEventId::Swipe )
return; return;
aWTimer.Stop(); aWTimer.Stop();
nFlags |= SelectionEngineFlags::CMDEVT; nFlags |= SelectionEngineFlags::CMDEVT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment