Skip to content

Commit

Permalink
sync: from linuxdeepin/dtkgui
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#232
  • Loading branch information
deepin-ci-robot authored and 18202781743 committed Apr 9, 2024
1 parent 81fbbaa commit ea20e94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/kernel/dplatformhandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,10 @@ bool DPlatformHandle::setWindowBlurAreaByWM(QWindow *window, const QVector<DPlat
}

if (isEnabledDXcb(window)) {
setWindowProperty(window, _windowBlurAreas, QVariant::fromValue(*(reinterpret_cast<const QVector<quint32>*>(&area))));

QVector<quint32> areas;
for (auto item : area)
areas << item.x << item.y << item.width << item.height << item.xRadius << item.yRaduis;
setWindowProperty(window, _windowBlurAreas, QVariant::fromValue(areas));
return true;
}

Expand Down

0 comments on commit ea20e94

Please sign in to comment.