dpmsinputeventfilter: Don't wake screens up on warp events

As pointer warps are not user interactions, they should not wake screens
up.

BUG: 480026
This commit is contained in:
Arsen Arsenović 2024-04-30 00:47:20 +02:00
parent 38c4980b0d
commit 5980945ee4
No known key found for this signature in database
GPG key ID: 52C294301EA2C493

View file

@ -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;
}