diff --git a/kdecoration/breezebutton.cpp b/kdecoration/breezebutton.cpp index b489bead..a1966026 100644 --- a/kdecoration/breezebutton.cpp +++ b/kdecoration/breezebutton.cpp @@ -41,6 +41,10 @@ namespace Breeze m_animation->setPropertyName( "opacity" ); m_animation->setEasingCurve( QEasingCurve::InOutQuad ); + // setup default geometry + const int height = decoration->buttonHeight(); + setGeometry(QRect(0, 0, height, height)); + // connect hover state changed connect( this, &KDecoration2::DecorationButton::hoveredChanged, this, &Button::updateAnimationState );