Commit 5b6c36f9 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

wayland: Check that seat has wl_pointer before canceling gestures

The seat must have the wl_pointer capability in order to gestures work.
parent 9786ea3c
......@@ -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();
}
);
......
Supports Markdown
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