eglfs: prevent expose/geometrychange loop

This prevents EGLFS from getting stuck after
exposing the first frame, by constantly generating
new Expose and GeometryChange events which are
synchronously processed.

Change-Id: Id3b09821ea31e9c1ddab7c520e782a4e42844a08
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
Andy Nichols 2013-05-31 14:57:52 +02:00 committed by The Qt Project
parent 101c47242b
commit 51a35f5c02

View File

@ -68,11 +68,11 @@ QEglFSWindow::~QEglFSWindow()
void QEglFSWindow::create()
{
setWindowState(Qt::WindowFullScreen);
if (m_window)
return;
setWindowState(Qt::WindowFullScreen);
if (window()->type() == Qt::Desktop) {
QRect rect(QPoint(), QEglFSHooks::hooks()->screenSize());
QPlatformWindow::setGeometry(rect);