summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxeglwindow.cpp
diff options
context:
space:
mode:
authorJames McDonnell <jmcdonnell@qnx.com>2014-03-12 11:44:21 -0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-14 22:39:09 +0100
commitff7f3aba39e69465caeea2f6fff0f41ec86fdb44 (patch)
tree4d9886adad1e381ad9610d6c52eb953f8b69fb23 /src/plugins/platforms/qnx/qqnxeglwindow.cpp
parent530f9856519e58c7793095a5ac92d49b192d3b0b (diff)
Complete support for no-fullscreen parameter
Change the code so that it doesn't force application windows to full screen when the no-fullscreen parameter is used in the QT_QPA_PLATFORM environment variable. Task-number: QTBUG-37456 Change-Id: If9612cc2ca69f829d45e7fd4b83338c3a41cf986 Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com> Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxeglwindow.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxeglwindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/platforms/qnx/qqnxeglwindow.cpp b/src/plugins/platforms/qnx/qqnxeglwindow.cpp
index 3c08cc9f82..f1f9f5469c 100644
--- a/src/plugins/platforms/qnx/qqnxeglwindow.cpp
+++ b/src/plugins/platforms/qnx/qqnxeglwindow.cpp
@@ -70,8 +70,7 @@ QQnxEglWindow::QQnxEglWindow(QWindow *window, screen_context_t context, bool nee
if (result != 0)
qFatal("QQnxEglWindow: failed to set window alpha usage, errno=%d", errno);
- m_requestedBufferSize = screen()->rootWindow() == this ?
- screen()->geometry().size() : window->geometry().size();
+ m_requestedBufferSize = shouldMakeFullScreen() ? screen()->geometry().size() : window->geometry().size();
}
QQnxEglWindow::~QQnxEglWindow()
@@ -156,7 +155,7 @@ EGLSurface QQnxEglWindow::getSurface()
void QQnxEglWindow::setGeometry(const QRect &rect)
{
//If this is the root window, it has to be shown fullscreen
- const QRect &newGeometry = screen()->rootWindow() == this ? screen()->geometry() : rect;
+ const QRect &newGeometry = shouldMakeFullScreen() ? screen()->geometry() : rect;
//We need to request that the GL context updates
// the EGLsurface on which it is rendering.