diff options
author | Trond Kjernåsen <trond@trolltech.com> | 2009-08-24 15:36:43 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond@trolltech.com> | 2009-08-24 15:42:56 (GMT) |
commit | 5bf8c45eb690caa8fd1ecb632d0c5fcbfddf250d (patch) | |
tree | 414d87ce41b6033779e10db6814495cc2cb63371 /src/gui | |
parent | 5ee3c7a120477668904502a997d88d0c5a0fd976 (diff) | |
download | Qt-5bf8c45eb690caa8fd1ecb632d0c5fcbfddf250d.zip Qt-5bf8c45eb690caa8fd1ecb632d0c5fcbfddf250d.tar.gz Qt-5bf8c45eb690caa8fd1ecb632d0c5fcbfddf250d.tar.bz2 |
Made it possible to use the Vista specific desktop effects.
Don't call UpdateLayeredWindowIndirect() unless we have a frameless
window, since it will ruin Vista specific desktop effects.
Reviewed-by: Jens Bache-Wiig
Reviewed-by: Samuel
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/painting/qwindowsurface_raster.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/painting/qwindowsurface_raster.cpp b/src/gui/painting/qwindowsurface_raster.cpp index 7cb65c7..7b52b05 100644 --- a/src/gui/painting/qwindowsurface_raster.cpp +++ b/src/gui/painting/qwindowsurface_raster.cpp @@ -147,7 +147,10 @@ void QRasterWindowSurface::flush(QWidget *widget, const QRegion &rgn, const QPoi QRect br = rgn.boundingRect(); #ifndef Q_WS_WINCE - if (!qt_widget_private(window())->isOpaque && window()->testAttribute(Qt::WA_TranslucentBackground)) { + if (!qt_widget_private(window())->isOpaque + && window()->testAttribute(Qt::WA_TranslucentBackground) + && (qt_widget_private(window())->data.window_flags & Qt::FramelessWindowHint)) + { QRect r = window()->frameGeometry(); QPoint frameOffset = qt_widget_private(window())->frameStrut().topLeft(); QRect dirtyRect = br.translated(offset + frameOffset); |