# HG changeset patch # User Matt Plumtree # Date 1281007066 -3600 # Node ID 13a436a0995be346f455458104c34a7ce8df3484 # Parent 975c90a565477e125c7267c239bfd1c12b072fd1 Bug 3505 "Background Surface does not get destroyed when app closes" No-bug "Background surface appears in front of UI content" diff -r 975c90a56547 -r 13a436a0995b windowing/windowserverplugins/openwfc/src/elementwrapper.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; } diff -r 975c90a56547 -r 13a436a0995b windowing/windowserverplugins/openwfc/src/openwfcwrapper.cpp --- 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(aElement); RemoveElementFromSceneList(element); - if (!(element->UpdateFlags()&CElementWrapper::EUpdate_SceneCommited)) - { - delete element; - } + delete element; } }