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:
parent
38c4980b0d
commit
5980945ee4
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue