fix some value inits for the no pushback case

CCBUG: 296762
REVIEW: 104420
This commit is contained in:
Thomas Lübking 2012-03-27 00:40:56 +02:00
parent 06ab909eb2
commit df32d86d84

View file

@ -219,7 +219,10 @@ void ScreenEdge::check(const QPoint& pos, Time now)
if (pushback_pixels == 0) { if (pushback_pixels == 0) {
// no pushback so we have to activate at once // no pushback so we have to activate at once
m_screenEdgeTimeLast = now; m_screenEdgeTimeLast = now;
m_currentScreenEdge = border;
m_screenEdgePushPoint = pos;
} }
if ((m_currentScreenEdge == border) && if ((m_currentScreenEdge == border) &&
(timestampDiff(m_screenEdgeTimeLast, now) < treshold_reset) && (timestampDiff(m_screenEdgeTimeLast, now) < treshold_reset) &&
(timestampDiff(m_screenEdgeTimeLastTrigger, now) > treshold_trigger) && (timestampDiff(m_screenEdgeTimeLastTrigger, now) > treshold_trigger) &&