diff options
author | Bernd Weimer <bweimer@blackberry.com> | 2013-07-25 09:36:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-12 10:36:23 +0200 |
commit | d8ba940b949d60f43fe3b2a4e2973b7a2fdc4b2a (patch) | |
tree | f9c3390422730ebd9c7f402c8d5572f93a5e8137 /src/plugins/platforms/qnx/qqnxscreen.cpp | |
parent | 23964bc338b9b00e204d45a917a0bb330cb795c4 (diff) |
QNX: Prevent rendering when app is minimized
Windows will only be exposed and hence rendered when they are not
minimized. This will save useless computations and hence battery.
Change-Id: I83166cc6c3d89e878106c998a35890dd7788ed8a
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxscreen.cpp')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxscreen.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxscreen.cpp b/src/plugins/platforms/qnx/qqnxscreen.cpp index 7959617443..d940b35861 100644 --- a/src/plugins/platforms/qnx/qqnxscreen.cpp +++ b/src/plugins/platforms/qnx/qqnxscreen.cpp @@ -646,6 +646,9 @@ void QQnxScreen::activateWindowGroup(const QByteArray &id) if (!window) return; + Q_FOREACH (QQnxWindow *childWindow, m_childWindows) + childWindow->setExposed(true); + QWindowSystemInterface::handleWindowActivated(window); } @@ -656,6 +659,9 @@ void QQnxScreen::deactivateWindowGroup(const QByteArray &id) if (!rootWindow() || id != rootWindow()->groupName()) return; + Q_FOREACH (QQnxWindow *childWindow, m_childWindows) + childWindow->setExposed(false); + QWindowSystemInterface::handleWindowActivated(0); } |