diff --git a/src/pointer_input.cpp b/src/pointer_input.cpp index ca781ac023..ce6e2f05c3 100644 --- a/src/pointer_input.cpp +++ b/src/pointer_input.cpp @@ -127,8 +127,10 @@ void PointerInputRedirection::init() if (waylandServer()->hasScreenLockerIntegration()) { connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::lockStateChanged, this, [this] { - waylandServer()->seat()->cancelPointerPinchGesture(); - waylandServer()->seat()->cancelPointerSwipeGesture(); + if (waylandServer()->seat()->hasPointer()) { + waylandServer()->seat()->cancelPointerPinchGesture(); + waylandServer()->seat()->cancelPointerSwipeGesture(); + } update(); } );