wip
This commit is contained in:
@@ -93,7 +93,11 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event) {
|
||||
case QEvent::MouseMove: {
|
||||
// ignore events when device is awakened by resetInteractiveTimeout
|
||||
ignore = !device()->isAwake();
|
||||
device()->resetInteractiveTimeout();
|
||||
if (main_layout->currentWidget() == settingsWindow) {
|
||||
device()->resetInteractiveTimeout(60 * 5); // 5 minute timeout if looking at settings window
|
||||
} else {
|
||||
device()->resetInteractiveTimeout(); // Default 30 seconds otherwise
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user