dpmsinputeventfilter: Don't wake screens up on warp events

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

BUG: 480026
wilder/Plasma/6.2
Arsen Arsenović 2 years ago
parent 38c4980b0d
commit 5980945ee4
No known key found for this signature in database
GPG Key ID: 52C294301EA2C493
  1. 6
      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;
}

Loading…
Cancel
Save