From 2a9b681f34cae5bc8ee534c8a86625ef08cd87a9 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Thu, 10 Sep 2009 05:13:25 +0000 Subject: [PATCH] added reimp 'reset' method to update mask when compositing state is changed svn path=/trunk/KDE/kdebase/workspace/; revision=1021804 --- clients/nitrogen/nitrogenclient.cpp | 12 ++++++++++++ clients/nitrogen/nitrogenclient.h | 3 +++ 2 files changed, 15 insertions(+) diff --git a/clients/nitrogen/nitrogenclient.cpp b/clients/nitrogen/nitrogenclient.cpp index 0eefdeb588..3b2a5cb747 100644 --- a/clients/nitrogen/nitrogenclient.cpp +++ b/clients/nitrogen/nitrogenclient.cpp @@ -124,6 +124,18 @@ namespace Nitrogen } + //___________________________________________ + void NitrogenClient::reset( unsigned long changed ) + { + if( changed & SettingCompositing ) + { + updateWindowShape(); + widget()->update(); + } + + KCommonDecorationUnstable::reset( changed ); + } + //___________________________________________ bool NitrogenClient::isMaximized() const { return maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows(); } diff --git a/clients/nitrogen/nitrogenclient.h b/clients/nitrogen/nitrogenclient.h index 7ad8d0c88a..57c239705c 100644 --- a/clients/nitrogen/nitrogenclient.h +++ b/clients/nitrogen/nitrogenclient.h @@ -78,6 +78,9 @@ namespace Nitrogen //! initialization virtual void init(); + // reset + virtual void reset( unsigned long changed ); + //! return associated configuration NitrogenConfiguration configuration( void ) const;