aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/autolockeventfilter.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/autolockeventfilter.h b/src/autolockeventfilter.h
index 2f05504..9c35c45 100644
--- a/src/autolockeventfilter.h
+++ b/src/autolockeventfilter.h
@@ -39,7 +39,18 @@ public slots:
protected:
bool eventFilter(QObject *obj, QEvent *ev) {
- if (ev->type() == QEvent::KeyPress || ev->type() == QEvent::MouseMove) {
+ if (ev->type() == QEvent::KeyPress
+ || ev->type() == QEvent::MouseMove
+ || ev->type() == QEvent::Wheel
+ || ev->type() == QEvent::TouchUpdate
+ || ev->type() == QEvent::MouseButtonRelease
+ || ev->type() == QEvent::MouseButtonPress
+ || ev->type() == QEvent::MouseButtonDblClick
+ || ev->type() == QEvent::Gesture
+ || ev->type() == QEvent::FocusIn
+ || ev->type() == QEvent::FocusOut
+ || ev->type() == QEvent::Enter
+ ) {
resetTimer();
}
return QObject::eventFilter(obj, ev);