diff --git a/clients/nitrogen/nitrogenbutton.cpp b/clients/nitrogen/nitrogenbutton.cpp index 93aea2bf84..a1aef83096 100644 --- a/clients/nitrogen/nitrogenbutton.cpp +++ b/clients/nitrogen/nitrogenbutton.cpp @@ -50,7 +50,7 @@ namespace Nitrogen colorCacheInvalid_(true) { setAutoFillBackground(false); - setAttribute(Qt::WA_OpaquePaintEvent, false); + setAttribute(Qt::WA_NoSystemBackground); { unsigned int size( client_.configuration().buttonSize() ); diff --git a/clients/nitrogen/nitrogenclient.cpp b/clients/nitrogen/nitrogenclient.cpp index 3dfce9092d..0a47853a85 100644 --- a/clients/nitrogen/nitrogenclient.cpp +++ b/clients/nitrogen/nitrogenclient.cpp @@ -95,7 +95,6 @@ namespace Nitrogen KCommonDecoration::init(); widget()->setAttribute(Qt::WA_NoSystemBackground ); - widget()->setAttribute( Qt::WA_OpaquePaintEvent ); widget()->setAutoFillBackground( false ); initialized_ = true;