diff --git a/qtacryliceffecthelper.cpp b/qtacryliceffecthelper.cpp index 62675dd..0a25ca9 100644 --- a/qtacryliceffecthelper.cpp +++ b/qtacryliceffecthelper.cpp @@ -174,14 +174,14 @@ void QtAcrylicEffectHelper::paintWindowBackground(QPainter *painter, const QRegi if (!painter || clip.isEmpty()) { return; } + if (!checkWindow()) { + return; + } // TODO: should we limit it to Win32 only? Or should we do something about the // acrylic brush instead? if (Utilities::disableExtraProcessingForBlur()) { return; } - if (!checkWindow()) { - return; - } painter->save(); painter->setClipRegion(clip); paintBackground(painter, clip.boundingRect()); @@ -194,14 +194,14 @@ void QtAcrylicEffectHelper::paintWindowBackground(QPainter *painter, const QRect if (!painter || !rect.isValid()) { return; } + if (!checkWindow()) { + return; + } // TODO: should we limit it to Win32 only? Or should we do something about the // acrylic brush instead? if (Utilities::disableExtraProcessingForBlur()) { return; } - if (!checkWindow()) { - return; - } painter->save(); painter->setClipRegion({rect}); paintBackground(painter, rect);