ui: wake for touch events (#21794)

pull/21795/head^2
sshane 4 years ago committed by GitHub
parent b15b10162d
commit c7fc312237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/ui/qt/window.cc

@ -76,7 +76,7 @@ void MainWindow::closeSettings() {
bool MainWindow::eventFilter(QObject *obj, QEvent *event) { bool MainWindow::eventFilter(QObject *obj, QEvent *event) {
// wake screen on tap // wake screen on tap
if (event->type() == QEvent::MouseButtonPress) { if (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::TouchBegin) {
device.setAwake(true, true); device.setAwake(true, true);
} }

Loading…
Cancel
Save