From 5980945ee42bf5fbcb677f5588d891e20a21ca41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Date: Tue, 30 Apr 2024 00:47:20 +0200 Subject: [PATCH] dpmsinputeventfilter: Don't wake screens up on warp events As pointer warps are not user interactions, they should not wake screens up. BUG: 480026 --- src/dpmsinputeventfilter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dpmsinputeventfilter.cpp b/src/dpmsinputeventfilter.cpp index ff9bbfc57b..b6314c3c9c 100644 --- a/src/dpmsinputeventfilter.cpp +++ b/src/dpmsinputeventfilter.cpp @@ -38,7 +38,11 @@ DpmsInputEventFilter::~DpmsInputEventFilter() bool DpmsInputEventFilter::pointerEvent(MouseEvent *event, quint32 nativeButton) { - notify(); + if (!event->isWarp()) { + // The intention is to wake the screen on user interactions + // warp events aren't user interactions, so ignore them. + notify(); + } return true; }