From c7fc312237b4e8b4925915801253a589068bdb1f Mon Sep 17 00:00:00 2001 From: sshane Date: Thu, 29 Jul 2021 22:24:24 -0700 Subject: [PATCH] ui: wake for touch events (#21794) --- selfdrive/ui/qt/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/window.cc b/selfdrive/ui/qt/window.cc index ee1a7edbb7..787fe4ebaa 100644 --- a/selfdrive/ui/qt/window.cc +++ b/selfdrive/ui/qt/window.cc @@ -76,7 +76,7 @@ void MainWindow::closeSettings() { bool MainWindow::eventFilter(QObject *obj, QEvent *event) { // wake screen on tap - if (event->type() == QEvent::MouseButtonPress) { + if (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::TouchBegin) { device.setAwake(true, true); }