From df32d86d84a58f1567f401f06ba9e8303414bff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 27 Mar 2012 00:40:56 +0200 Subject: [PATCH] fix some value inits for the no pushback case CCBUG: 296762 REVIEW: 104420 --- screenedge.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/screenedge.cpp b/screenedge.cpp index 0b5718561d..1b08dbce75 100644 --- a/screenedge.cpp +++ b/screenedge.cpp @@ -219,7 +219,10 @@ void ScreenEdge::check(const QPoint& pos, Time now) if (pushback_pixels == 0) { // no pushback so we have to activate at once m_screenEdgeTimeLast = now; + m_currentScreenEdge = border; + m_screenEdgePushPoint = pos; } + if ((m_currentScreenEdge == border) && (timestampDiff(m_screenEdgeTimeLast, now) < treshold_reset) && (timestampDiff(m_screenEdgeTimeLastTrigger, now) > treshold_trigger) &&