ui: wake for touch events (#21794)

This commit is contained in:
sshane
2021-07-29 22:24:24 -07:00
committed by GitHub
parent b15b10162d
commit c7fc312237
+1 -1
View File
@@ -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);
}