plugins/shakecursor: don't trigger for warp events

Otherwise the effect may trigger when the user didn't actually move the cursor

(cherry picked from commit 54c1aee09e)
wilder/Plasma/6.2
Xaver Hugl 1 year ago
parent 9f49a8ec9c
commit 3f7c0e05c1
  1. 2
      src/plugins/shakecursor/shakecursor.cpp

@ -115,7 +115,7 @@ void ShakeCursorEffect::animateTo(qreal magnification)
void ShakeCursorEffect::pointerEvent(MouseEvent *event)
{
if (event->buttons() != Qt::NoButton) {
if (event->buttons() != Qt::NoButton || event->isWarp()) {
m_shakeDetector.reset();
return;
}

Loading…
Cancel
Save