From d460f089e5834901bd15fe721af820f6c3644796 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 25 May 2012 15:26:22 -0700 Subject: eglfs: Don't update screen for non mouse-move events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7df089a9dc87396e19c08cef3d76c7c7f95a8fbf Reviewed-by: Donald Carr Reviewed-by: Andy Nichols Reviewed-by: Samuel Rødal --- src/plugins/platforms/eglfs/qeglfscursor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/platforms') diff --git a/src/plugins/platforms/eglfs/qeglfscursor.cpp b/src/plugins/platforms/eglfs/qeglfscursor.cpp index 63f7964ca4..c1f667cb87 100644 --- a/src/plugins/platforms/eglfs/qeglfscursor.cpp +++ b/src/plugins/platforms/eglfs/qeglfscursor.cpp @@ -235,6 +235,8 @@ void QEglFSCursor::setPos(const QPoint &pos) void QEglFSCursor::pointerEvent(const QMouseEvent &event) { + if (event.type() != QEvent::MouseMove) + return; const QRect oldCursorRect = cursorRect(); m_pos = event.pos(); QRegion rgn = oldCursorRect | cursorRect(); -- cgit v1.2.3