wayland: Check that seat has wl_pointer before canceling gestures
The seat must have the wl_pointer capability in order to gestures work.
This commit is contained in:
parent
9786ea3c58
commit
5b6c36f953
1 changed files with 4 additions and 2 deletions
|
@ -127,8 +127,10 @@ void PointerInputRedirection::init()
|
||||||
if (waylandServer()->hasScreenLockerIntegration()) {
|
if (waylandServer()->hasScreenLockerIntegration()) {
|
||||||
connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::lockStateChanged, this,
|
connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::lockStateChanged, this,
|
||||||
[this] {
|
[this] {
|
||||||
waylandServer()->seat()->cancelPointerPinchGesture();
|
if (waylandServer()->seat()->hasPointer()) {
|
||||||
waylandServer()->seat()->cancelPointerSwipeGesture();
|
waylandServer()->seat()->cancelPointerPinchGesture();
|
||||||
|
waylandServer()->seat()->cancelPointerSwipeGesture();
|
||||||
|
}
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue