From 506c34fdd2b0a7adfd79b0a42b91f0bcc7b045ec Mon Sep 17 00:00:00 2001 From: Bernd Weimer Date: Sat, 18 Jan 2014 17:28:30 +0100 Subject: QNX: Fixed window opacity Opacity was not set initially and not committed to libscreen when changed. Change-Id: Icf24be833de28bd72275cf93a3ab2fb344726023 Reviewed-by: Kevin Krammer Reviewed-by: Fabian Bumberger --- src/plugins/platforms/qnx/qqnxwindow.cpp | 5 +++-- 1 file 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()); -- cgit v1.2.3