diff --git a/selfdrive/ui/qt/window.cc b/selfdrive/ui/qt/window.cc index 864dabf1..7bf79568 100644 --- a/selfdrive/ui/qt/window.cc +++ b/selfdrive/ui/qt/window.cc @@ -75,7 +75,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event){ #ifdef QCOM // filter out touches while in android activity - const QList filter_events = {QEvent::MouseButtonPress, QEvent::MouseMove, QEvent::TouchBegin, QEvent::TouchUpdate, QEvent::TouchEnd}; + const static QSet filter_events({QEvent::MouseButtonPress, QEvent::MouseMove, QEvent::TouchBegin, QEvent::TouchUpdate, QEvent::TouchEnd}); if (HardwareEon::launched_activity && filter_events.contains(event->type())) { HardwareEon::check_activity(); if (HardwareEon::launched_activity) {