|
|
|
@ -41,6 +41,7 @@
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QPainterPath>
|
|
|
|
#include <QPainterPath>
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QX11Info>
|
|
|
|
#include <QX11Info>
|
|
|
|
|
|
|
|
|
|
|
|
// XCB
|
|
|
|
// XCB
|
|
|
|
@ -129,7 +130,7 @@ void BlurHelper::enableBlurBehind(QWidget *widget, bool enable, qreal windowRadi
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
if (enable) {
|
|
|
|
if (enable) {
|
|
|
|
qreal devicePixelRatio = widget->screen()->devicePixelRatio();
|
|
|
|
qreal devicePixelRatio = qApp->devicePixelRatio();
|
|
|
|
QPainterPath path;
|
|
|
|
QPainterPath path;
|
|
|
|
path.addRoundedRect(QRectF(QPoint(0, 0), widget->size() * devicePixelRatio),
|
|
|
|
path.addRoundedRect(QRectF(QPoint(0, 0), widget->size() * devicePixelRatio),
|
|
|
|
windowRadius * devicePixelRatio,
|
|
|
|
windowRadius * devicePixelRatio,
|
|
|
|
|