ui: wake for touch events (#21794)

old-commit-hash: c7fc312237b4e8b4925915801253a589068bdb1f
This commit is contained in:
sshane
2021-07-29 22:24:24 -07:00
committed by GitHub
parent b906487386
commit 46dc29fd4d
+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);
}