fix z ordering of screens
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 22 Dec 2005 18:53:38 +0000 (18:53 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 22 Dec 2005 18:53:38 +0000 (18:53 +0000)
lib/gui/ewidgetdesktop.cpp

index 223b5c8..d8de2ae 100644 (file)
@@ -18,7 +18,7 @@ void eWidgetDesktop::addRootWidget(eWidget *root)
        
        for (;;)
        {
        
        for (;;)
        {
-               if ((insert_position == m_root.end()) || (invert_sense ^ (insert_position->m_z_position > root->m_z_position)))
+               if ((insert_position == m_root.end()) || (invert_sense ^ (insert_position->m_z_position >= root->m_z_position)))
                {
                        m_root.insert(insert_position, root);
                        break;
                {
                        m_root.insert(insert_position, root);
                        break;