diff options
author | David Boddie <dboddie@trolltech.com> | 2010-02-05 15:02:30 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-02-05 15:02:30 (GMT) |
commit | 12f9af3d569210e928d1d5e3a174c53a97dd3372 (patch) | |
tree | a2c4ab87deeb87cd5256a1df9e1b80df3be61094 /src/gui/kernel/qapplication_s60.cpp | |
parent | ced7ed0bc745618e1b0618a17b112f983dd4a9c6 (diff) | |
parent | 906f77bcfd4358f35155075b6d5fd8a383adadba (diff) | |
download | Qt-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.cpp | 3 |
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); |