From bde025168953f2093c2b957ca978be90e8602de4 Mon Sep 17 00:00:00 2001 From: Kevin Krammer Date: Wed, 29 Feb 2012 14:00:14 +0100 Subject: Fixing z-ordering of windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Nick Ratelle Reviewed-by: Rafael Roquetto Reviewed-by: Jørgen Lind --- src/plugins/platforms/blackberry/qbbscreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::iterator it; QList::iterator sit; QMap 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; -- cgit v0.12