summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorKevin Krammer <kevin.krammer.qnx@kdab.com>2012-02-29 13:00:14 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-03-02 21:51:19 (GMT)
commitbde025168953f2093c2b957ca978be90e8602de4 (patch)
treedf708c2557e4ca6b1f239bc033de07db3998d201 /src/plugins/platforms
parentf52634f4f41243105d0ac3ade3558c1bbff014c7 (diff)
downloadQt-bde025168953f2093c2b957ca978be90e8602de4.zip
Qt-bde025168953f2093c2b957ca978be90e8602de4.tar.gz
Qt-bde025168953f2093c2b957ca978be90e8602de4.tar.bz2
Fixing z-ordering of windows
The application root window is at z-order == 0, all platform windows created for Qt windows are its descendants, so their base value for z-order needs to be 1. Backport of qtbase 117bdad3f270a4c0589cff332a7a8e904263de08 Change-Id: Ic1fb91c30559177bc094a5db96e4088860a8d6ac Reviewed-by: Sean Harmer <sh@theharmers.co.uk> Reviewed-by: Nick Ratelle <nratelle@qnx.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/blackberry/qbbscreen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/blackberry/qbbscreen.cpp b/src/plugins/platforms/blackberry/qbbscreen.cpp
index b2a1c8d..3ea0e40 100644
--- a/src/plugins/platforms/blackberry/qbbscreen.cpp
+++ b/src/plugins/platforms/blackberry/qbbscreen.cpp
@@ -294,7 +294,7 @@ void QBBScreen::updateHierarchy()
QList<QBBWindow*>::iterator it;
QList<QPlatformScreen *>::iterator sit;
QMap<QPlatformScreen *, int> map;
- int topZorder = 0;
+ int topZorder = 1; // root window is z-order 0, all "top" level windows are "above" it
for (sit = sScreens.begin(); sit != sScreens.end(); sit++)
map[*sit] = 0;