Handle window state changes correctly in EGLFS
The only valid state for EGLFS is fullscreen; this change reduces EGLFS to reflect this cruel reality Change-Id: I5aa9b4ef88451a00ce9de328add7d5512e1c86b5 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
parent
cdfdc0b4a6
commit
5ba9c07ddd
@ -54,10 +54,7 @@ QEglFSWindow::QEglFSWindow(QWindow *w)
|
||||
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);
|
||||
}
|
||||
setWindowState(Qt::WindowFullScreen);
|
||||
}
|
||||
|
||||
void QEglFSWindow::setGeometry(const QRect &)
|
||||
@ -69,6 +66,12 @@ void QEglFSWindow::setGeometry(const QRect &)
|
||||
QPlatformWindow::setGeometry(rect);
|
||||
}
|
||||
|
||||
Qt::WindowState QEglFSWindow::setWindowState(Qt::WindowState state)
|
||||
{
|
||||
setGeometry(QRect());
|
||||
return Qt::WindowFullScreen;
|
||||
}
|
||||
|
||||
WId QEglFSWindow::winId() const
|
||||
{
|
||||
return m_winid;
|
||||
|
@ -56,6 +56,7 @@ public:
|
||||
QEglFSWindow(QWindow *w);
|
||||
|
||||
void setGeometry(const QRect &);
|
||||
Qt::WindowState setWindowState(Qt::WindowState state);
|
||||
WId winId() const;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user