parent
ccea67579c
commit
06cea4cf86
@ -1,36 +0,0 @@
|
|||||||
From da26deaa5c843ef303ef9f1b9f0cd3d341c5c5f5 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
||||||
Date: Wed, 22 Feb 2023 21:35:26 +0200
|
|
||||||
Subject: [PATCH] backends/libinput: Fix crash upon receiving motion absolute
|
|
||||||
events
|
|
||||||
|
|
||||||
The input events can be processed when the workspace is not available,
|
|
||||||
e.g. during startup or shutdown, so add a corresponding guard.
|
|
||||||
|
|
||||||
As a long term plan, we need to decouple Workspace from low-level input
|
|
||||||
backend parts, but it will be a too invasive change for now.
|
|
||||||
|
|
||||||
BUG: 449317
|
|
||||||
BUG: 465456
|
|
||||||
---
|
|
||||||
src/backends/libinput/connection.cpp | 4 +++-
|
|
||||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/backends/libinput/connection.cpp b/src/backends/libinput/connection.cpp
|
|
||||||
index f99771d9b1..db1a19b687 100644
|
|
||||||
--- a/src/backends/libinput/connection.cpp
|
|
||||||
+++ b/src/backends/libinput/connection.cpp
|
|
||||||
@@ -373,7 +373,9 @@ void Connection::processEvents()
|
|
||||||
}
|
|
||||||
case LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE: {
|
|
||||||
PointerEvent *pe = static_cast<PointerEvent *>(event.get());
|
|
||||||
- Q_EMIT pe->device()->pointerMotionAbsolute(pe->absolutePos(workspace()->geometry().size()), pe->time(), pe->device());
|
|
||||||
+ if (workspace()) {
|
|
||||||
+ Q_EMIT pe->device()->pointerMotionAbsolute(pe->absolutePos(workspace()->geometry().size()), pe->time(), pe->device());
|
|
||||||
+ }
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case LIBINPUT_EVENT_TOUCH_DOWN: {
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
--- kwin-5.27.0/src/input.cpp 2023-02-09 04:15:33.000000000 -0800
|
|
||||||
+++ kwin-5.27.0/src/input.cpp.new 2023-02-20 20:40:33.920599151 -0800
|
|
||||||
@@ -2822,8 +2822,8 @@
|
|
||||||
void InputRedirection::setupInputFilters()
|
|
||||||
{
|
|
||||||
const bool hasGlobalShortcutSupport = waylandServer()->hasGlobalShortcutSupport();
|
|
||||||
- if ((kwinApp()->session()->capabilities() & Session::Capability::SwitchTerminal)
|
|
||||||
- && hasGlobalShortcutSupport) {
|
|
||||||
+ if (kwinApp()->session()->capabilities() & Session::Capability::SwitchTerminal)
|
|
||||||
+ {
|
|
||||||
installInputEventFilter(new VirtualTerminalFilter);
|
|
||||||
}
|
|
||||||
installInputEventSpy(new HideCursorSpy);
|
|
@ -1 +1 @@
|
|||||||
SHA512 (kwin-5.27.1.tar.xz) = 8993416d207807ae954974e9d76de183701b2a7d3661f0248dc689c7079d8c3538ca3cb400aeb6707fdecd0e021b4846dbddac674e75226ce0265b51f987a127
|
SHA512 (kwin-5.27.2.tar.xz) = 08dfedecfc99f95bc042ebc0f625549c5b82db568a6cfae289d5580c8465b8aca61fd91c5413f92a4a51a6ac35a373edac0ee4c40a8701c6b1b8f815066c5319
|
||||||
|
Loading…
Reference in new issue