summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-10-06 15:33:19 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-10-13 22:11:25 (GMT)
commitb3ee3b8e681f3d5d7dd42a5b6391ec473c78a28a (patch)
tree742f84e09a856e22e472ada7cfeb496dbff120ed /src/plugins
parent5cf4e269ecaeda3cd847b2d7704fa5c94dbf0fae (diff)
downloadQt-b3ee3b8e681f3d5d7dd42a5b6391ec473c78a28a.zip
Qt-b3ee3b8e681f3d5d7dd42a5b6391ec473c78a28a.tar.gz
Qt-b3ee3b8e681f3d5d7dd42a5b6391ec473c78a28a.tar.bz2
Make sure we don't repaint when moving a window
We need to make sure the QDirectFBWindowSurface returns true for isBuffered(). Otherwise QWSWindowSurface will force a repaint when moved. Reviewed-by: Donald Carr <donald.carr@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
index f33e820..a409ce5 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
@@ -276,6 +276,8 @@ void QDirectFBWindowSurface::setPermanentState(const QByteArray &state)
{
if (state.size() == sizeof(this)) {
sibling = *reinterpret_cast<QDirectFBWindowSurface *const*>(state.constData());
+ Q_ASSERT(sibling);
+ sibling->setSurfaceFlags(surfaceFlags());
}
}