Implement map/unmap and force geometry EglFS

Change-Id: Ia2d86e84acfeb30f41b06f106b93033fe54ed839
Reviewed-on: http://codereview.qt.nokia.com/2730
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
This commit is contained in:
Gunnar Sletta 2011-08-08 09:23:19 +02:00 committed by Jørgen Lind
parent e09d427baf
commit 5c435189d4
2 changed files with 18 additions and 1 deletions

View File

@ -51,8 +51,13 @@ QEglFSWindow::QEglFSWindow(QWindow *w)
static int serialNo = 0;
m_winid = ++serialNo;
#ifdef QEGL_EXTRA_DEBUG
qWarning("QEglWindow %p: %p %p 0x%x\n", this, w, screen, uint(m_winid));
qWarning("QEglWindow %p: %p 0x%x\n", this, w, uint(m_winid));
#endif
QRect screenGeometry(screen()->availableGeometry());
if (w->geometry() != screenGeometry) {
QWindowSystemInterface::handleGeometryChange(w, screenGeometry);
}
}
void QEglFSWindow::setGeometry(const QRect &)
@ -69,4 +74,14 @@ WId QEglFSWindow::winId() const
return m_winid;
}
void QEglFSWindow::setVisible(bool visible)
{
if (visible) {
QWindowSystemInterface::handleMapEvent(window());
} else {
QWindowSystemInterface::handleUnmapEvent(window());
}
}
QT_END_NAMESPACE

View File

@ -58,6 +58,8 @@ public:
void setGeometry(const QRect &);
WId winId() const;
void setVisible(bool visible);
private:
WId m_winid;
};