Bug 3505 "Background Surface does not get destroyed when app closes" NewGraphicsArchitecture
authorMatt Plumtree <matt.plumtree@nokia.com>
Thu, 05 Aug 2010 12:17:46 +0100
branchNewGraphicsArchitecture
changeset 140 13a436a0995b
parent 139 975c90a56547
child 141 f5b6a43d0d2d
Bug 3505 "Background Surface does not get destroyed when app closes" No-bug "Background surface appears in front of UI content"
windowing/windowserverplugins/openwfc/src/elementwrapper.cpp
windowing/windowserverplugins/openwfc/src/openwfcwrapper.cpp
--- a/windowing/windowserverplugins/openwfc/src/elementwrapper.cpp	Wed Aug 04 14:31:48 2010 +0100
+++ b/windowing/windowserverplugins/openwfc/src/elementwrapper.cpp	Thu Aug 05 12:17:46 2010 +0100
@@ -974,9 +974,6 @@
             }
         }
 
-     FlushAttributeChanges(iElement, EUpdate_ALL_ATTRIBS|EUpdate_DontLockSource);
-     wfcInsertElement(iOpenWfcWrapper.Device(),iElement,elementBelow);
-
     LILOG(("### EXIT CElementWrapper::FlushSceneChanges() FALSE"));
     return ETrue;
     }
--- a/windowing/windowserverplugins/openwfc/src/openwfcwrapper.cpp	Wed Aug 04 14:31:48 2010 +0100
+++ b/windowing/windowserverplugins/openwfc/src/openwfcwrapper.cpp	Thu Aug 05 12:17:46 2010 +0100
@@ -340,10 +340,7 @@
 	    {	    
 	    CElementWrapper* element=static_cast<CElementWrapper*>(aElement);
 	    RemoveElementFromSceneList(element);
-	    if (!(element->UpdateFlags()&CElementWrapper::EUpdate_SceneCommited))
-	          {
-	             delete element;
-	          }
+	    delete element;
 	    }
 	}