Commit b24fc729 authored by Bhushan Shah's avatar Bhushan Shah 📱
Browse files

[platforms/drm] only enable output on key press not release



Otherwise if powerdevil for example is configured to turn screen off on
the power key press, we will turn it right back on when we get key
release event.
Suggested-by: David Edmundson's avatarDavid Edmundson <kde@davidedmundson.co.uk>
parent ea4acb57
...@@ -42,9 +42,11 @@ bool DpmsInputEventFilter::wheelEvent(QWheelEvent *event) ...@@ -42,9 +42,11 @@ bool DpmsInputEventFilter::wheelEvent(QWheelEvent *event)
bool DpmsInputEventFilter::keyEvent(QKeyEvent *event) bool DpmsInputEventFilter::keyEvent(QKeyEvent *event)
{ {
Q_UNUSED(event) if (event->type() == QKeyEvent::KeyPress) {
notify(); notify();
return true; return true;
}
return false;
} }
bool DpmsInputEventFilter::touchDown(qint32 id, const QPointF &pos, quint32 time) bool DpmsInputEventFilter::touchDown(qint32 id, const QPointF &pos, quint32 time)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment