summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxwindow.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/qnx/qqnxwindow.cpp b/src/plugins/platforms/qnx/qqnxwindow.cpp
index e28e5f40e5..241608fa98 100644
--- a/src/plugins/platforms/qnx/qqnxwindow.cpp
+++ b/src/plugins/platforms/qnx/qqnxwindow.cpp
@@ -243,8 +243,7 @@ void QQnxWindow::setOpacity(qreal level)
if (result != 0)
qFatal("QQnxWindow: failed to set window global alpha, errno=%d", errno);
- // TODO: How to handle children of this window? If we change all the visibilities, then
- // the transparency will look wrong...
+ screen_flush_context(m_screenContext, 0);
}
void QQnxWindow::setExposed(bool exposed)
@@ -584,6 +583,8 @@ void QQnxWindow::initWindow()
// Qt never calls these setters after creating the window, so we need to do that ourselves here
setWindowState(window()->windowState());
+ setOpacity(window()->opacity());
+
if (window()->parent() && window()->parent()->handle())
setParent(window()->parent()->handle());