summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_s60.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-02-05 15:02:30 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-02-05 15:02:30 (GMT)
commit12f9af3d569210e928d1d5e3a174c53a97dd3372 (patch)
treea2c4ab87deeb87cd5256a1df9e1b80df3be61094 /src/gui/kernel/qapplication_s60.cpp
parentced7ed0bc745618e1b0618a17b112f983dd4a9c6 (diff)
parent906f77bcfd4358f35155075b6d5fd8a383adadba (diff)
downloadQt-12f9af3d569210e928d1d5e3a174c53a97dd3372.zip
Qt-12f9af3d569210e928d1d5e3a174c53a97dd3372.tar.gz
Qt-12f9af3d569210e928d1d5e3a174c53a97dd3372.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6
Diffstat (limited to 'src/gui/kernel/qapplication_s60.cpp')
-rw-r--r--src/gui/kernel/qapplication_s60.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index 6caac9f..6e03d7c 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -1647,6 +1647,9 @@ int QApplicationPrivate::symbianProcessWsEvent(const QSymbianEvent *symbianEvent
if (visChangedEvent->iFlags & TWsVisibilityChangedEvent::ENotVisible) {
delete w->d_func()->topData()->backingStore;
w->d_func()->topData()->backingStore = 0;
+ // In order to ensure that any resources used by the window surface
+ // are immediately freed, we flush the WSERV command buffer.
+ S60->wsSession().Flush();
} else if ((visChangedEvent->iFlags & TWsVisibilityChangedEvent::EPartiallyVisible)
&& !w->d_func()->maybeBackingStore()) {
w->d_func()->topData()->backingStore = new QWidgetBackingStore(w);