summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-10-06 15:42:07 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-10-13 22:12:05 (GMT)
commitb5e7172e7150cc92290f1eff5a8323e0ff3a24b9 (patch)
tree9503c53f7d8325d333951741328d0fcb178186d6 /src/plugins
parentb3ee3b8e681f3d5d7dd42a5b6391ec473c78a28a (diff)
downloadQt-b5e7172e7150cc92290f1eff5a8323e0ff3a24b9.zip
Qt-b5e7172e7150cc92290f1eff5a8323e0ff3a24b9.tar.gz
Qt-b5e7172e7150cc92290f1eff5a8323e0ff3a24b9.tar.bz2
Don't create too many window surfaces in DFB
Since DirectFB handles the composition for us we don't need to invalidate anything when moving a window. Only on resize do we want another paint event. Reviewed-by: Donald Carr <donald.carr@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
index a409ce5..27ec668 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp
@@ -262,7 +262,11 @@ void QDirectFBWindowSurface::setGeometry(const QRect &rect)
if (oldSurface != dfbSurface)
updateFormat();
- QWSWindowSurface::setGeometry(rect);
+ if (oldRect.size() != rect.size()) {
+ QWSWindowSurface::setGeometry(rect);
+ } else {
+ QWindowSurface::setGeometry(rect);
+ }
}
QByteArray QDirectFBWindowSurface::permanentState() const