diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-10-06 15:42:07 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-10-13 22:12:05 (GMT) |
commit | b5e7172e7150cc92290f1eff5a8323e0ff3a24b9 (patch) | |
tree | 9503c53f7d8325d333951741328d0fcb178186d6 /src/plugins/gfxdrivers | |
parent | b3ee3b8e681f3d5d7dd42a5b6391ec473c78a28a (diff) | |
download | Qt-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/gfxdrivers')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp | 6 |
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 |