diff --git a/src/Decoration.cc b/src/Decoration.cc index f53ccaa..950147c 100644 --- a/src/Decoration.cc +++ b/src/Decoration.cc @@ -47,7 +47,6 @@ #include #include - namespace Material { @@ -197,6 +196,7 @@ void Decoration::paint(QPainter *painter, const QRect &repaintRegion) if (settings()->borderSize() >= KDecoration2::BorderSize::Normal) { paintOutline(painter, repaintRegion); } + setBlurRegion( QRegion(this->titleBar()) ); } void Decoration::init() @@ -316,7 +316,7 @@ void Decoration::hoverEnterEvent(QHoverEvent *event) { KDecoration2::Decoration::hoverEnterEvent(event); qCDebug(category) << "Decoration::hoverEnterEvent" << event; - + setBlurRegion( QRegion(this->titleBar()) ); // m_menuButtons->setHovered(true); } @@ -342,6 +342,7 @@ void Decoration::hoverMoveEvent(QHoverEvent *event) // } else if (wasHovered && contains) { // // HoverMove // } + setBlurRegion( QRegion(this->titleBar()) ); } void Decoration::mouseReleaseEvent(QMouseEvent *event) @@ -350,6 +351,7 @@ void Decoration::mouseReleaseEvent(QMouseEvent *event) // qCDebug(category) << "Decoration::mouseReleaseEvent" << event; resetDragMove(); + setBlurRegion( QRegion(this->titleBar()) ); } void Decoration::hoverLeaveEvent(QHoverEvent *event) @@ -358,7 +360,7 @@ void Decoration::hoverLeaveEvent(QHoverEvent *event) qCDebug(category) << "Decoration::hoverLeaveEvent" << event; resetDragMove(); - + setBlurRegion( QRegion(this->titleBar()) ); // m_menuButtons->setHovered(false); }