mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-27 00:42:05 +08:00
ui: wake for touch events (#21794)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user