From d4d81fe68aa7d2b2a89ae5e049dd630e0da77651 Mon Sep 17 00:00:00 2001 From: Morten Johan Sorvig Date: Thu, 27 Sep 2012 10:37:30 +0200 Subject: Remove handleSynchronous* functions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are now two different ways to implement synchronous event processing. The platform plugins can choose which one to use. 1) flushWindowSystemEvents() Use to flush the event queue at one point, making preceding calls synchronous. 2) setSynchronousWindowsSystemEvents(bool enable) Makes all handle* functions synchronous, bypassing the event queue completely. Change-Id: I020b80c731fd13f855a377d7c91d06a4e39b6a0b Reviewed-by: Friedemann Kleint Reviewed-by: Samuel Rødal Reviewed-by: Joerg Bornemann Reviewed-by: Richard Moe Gustavsen --- src/plugins/platforms/eglfs/qeglfscursor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/platforms/eglfs') diff --git a/src/plugins/platforms/eglfs/qeglfscursor.cpp b/src/plugins/platforms/eglfs/qeglfscursor.cpp index c07a018bbb..85bc8679f2 100644 --- a/src/plugins/platforms/eglfs/qeglfscursor.cpp +++ b/src/plugins/platforms/eglfs/qeglfscursor.cpp @@ -224,7 +224,8 @@ bool QEglFSCursor::setCurrentCursor(QCursor *cursor) void QEglFSCursor::update(const QRegion &rgn) { - QWindowSystemInterface::handleSynchronousExposeEvent(m_screen->topLevelAt(m_cursor.pos), rgn); + QWindowSystemInterface::handleExposeEvent(m_screen->topLevelAt(m_cursor.pos), rgn); + QWindowSystemInterface::flushWindowSystemEvents(); } QRect QEglFSCursor::cursorRect() const -- cgit v1.2.3