diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 8818e11efc..34c58e111f 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -1436,19 +1436,16 @@ namespace Oxygen paint( painter ); // update buttons - if( compositingActive() ) + QList buttons( widget()->findChildren() ); + foreach( Button* button, buttons ) { - QList buttons( widget()->findChildren() ); - foreach( Button* button, buttons ) + if( button->isVisible() && event->rect().intersects( button->geometry() ) ) { - if( button->isVisible() && event->rect().intersects( button->geometry() ) ) - { - painter.save(); - painter.setViewport( button->geometry() ); - painter.setWindow( button->rect() ); - button->paint( painter ); - painter.restore(); - } + painter.save(); + painter.setViewport( button->geometry() ); + painter.setWindow( button->rect() ); + button->paint( painter ); + painter.restore(); } }