Skip to content

Commit

Permalink
fix blur for versions => 5.25
Browse files Browse the repository at this point in the history
  • Loading branch information
nicman23 committed Aug 30, 2022
1 parent 9739497 commit 16ac01a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Decoration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <xcb/xcb.h>
#include <QX11Info>


namespace Material
{

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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);
}

Expand All @@ -342,6 +342,7 @@ void Decoration::hoverMoveEvent(QHoverEvent *event)
// } else if (wasHovered && contains) {
// // HoverMove
// }
setBlurRegion( QRegion(this->titleBar()) );
}

void Decoration::mouseReleaseEvent(QMouseEvent *event)
Expand All @@ -350,6 +351,7 @@ void Decoration::mouseReleaseEvent(QMouseEvent *event)
// qCDebug(category) << "Decoration::mouseReleaseEvent" << event;

resetDragMove();
setBlurRegion( QRegion(this->titleBar()) );
}

void Decoration::hoverLeaveEvent(QHoverEvent *event)
Expand All @@ -358,7 +360,7 @@ void Decoration::hoverLeaveEvent(QHoverEvent *event)
qCDebug(category) << "Decoration::hoverLeaveEvent" << event;

resetDragMove();

setBlurRegion( QRegion(this->titleBar()) );
// m_menuButtons->setHovered(false);
}

Expand Down

0 comments on commit 16ac01a

Please sign in to comment.