From ee6729517f09e7cfa22de8467820d2eb86661f67 Mon Sep 17 00:00:00 2001 From: reionwong Date: Fri, 24 Sep 2021 06:25:34 +0800 Subject: [PATCH] Fix build failed --- debian/control | 1 + widgetstyle/blurhelper.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index c2cb146..586066f 100644 --- a/debian/control +++ b/debian/control @@ -9,6 +9,7 @@ Build-Depends: cmake, libkf5windowsystem-dev, libqt5xdg-dev, libdbusmenu-qt5-dev, + libxcb-shape0-dev, libxcb1-dev, libxcb-ewmh-dev, qtbase5-dev, diff --git a/widgetstyle/blurhelper.cpp b/widgetstyle/blurhelper.cpp index 89997fb..876019f 100644 --- a/widgetstyle/blurhelper.cpp +++ b/widgetstyle/blurhelper.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #include // XCB @@ -129,7 +130,7 @@ void BlurHelper::enableBlurBehind(QWidget *widget, bool enable, qreal windowRadi return; if (enable) { - qreal devicePixelRatio = widget->screen()->devicePixelRatio(); + qreal devicePixelRatio = qApp->devicePixelRatio(); QPainterPath path; path.addRoundedRect(QRectF(QPoint(0, 0), widget->size() * devicePixelRatio), windowRadius * devicePixelRatio,