From c9529c5563f6b5001a05248f7ed9552064685ca7 Mon Sep 17 00:00:00 2001 From: Andreas Hartmetz Date: Mon, 9 May 2011 14:17:06 +0200 Subject: [PATCH] Plasma Wallpaper: Fix targetSize updating logic. As discussed with Aaron a few weeks ago on IRC. --- wallpaper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wallpaper.cpp b/wallpaper.cpp index a7f3e0da9..97ec7e8cb 100644 --- a/wallpaper.cpp +++ b/wallpaper.cpp @@ -292,10 +292,9 @@ bool Wallpaper::isInitialized() const void Wallpaper::setBoundingRect(const QRectF &boundingRect) { - QSizeF oldBoundingRectSize = d->boundingRect.size(); d->boundingRect = boundingRect; - if (!d->targetSize.isValid() || d->targetSize == oldBoundingRectSize) { + if (d->targetSize != boundingRect.size()) { d->targetSize = boundingRect.size(); emit renderHintsChanged(); }