cancel the home key activation timer if something else is pressed along with Meta
commit6cb60257dbacf275add38b147ee3d6284397aafc
authorMichael Zanetti <michael.zanetti@canonical.com>
dateTue 21 Feb 2017, 17:47 (10 years ago)
parent7af3e1d
plugins/Utils/WindowInputMonitor.cpp+3
@@ -73,6 +73,9 @@ void WindowInputMonitor::update(QEvent *event)
7373 && m_windowLastTouchedTimer->elapsed() >= msecsWithoutTouches) {
7474 m_pressedHomeKey = keyEvent->key();
7575 m_activationTimer->start();
76+ } else if (m_pressedHomeKey != 0) {
77+ // something else came in... cancel activation
78+ m_activationTimer->stop();
7679 }
7780
7881 } else if (event->type() == QEvent::KeyRelease) {