diff --git a/composite.cpp b/composite.cpp index 9aaeb60e66..d5f05c9559 100644 --- a/composite.cpp +++ b/composite.cpp @@ -288,6 +288,15 @@ void Workspace::suspendCompositing( bool suspend ) setupCompositing(); // will do nothing if suspended } +void Workspace::resetCompositing() + { + if( compositing()) + { + finishCompositing(); + QTimer::singleShot( 0, this, SLOT( setupCompositing())); + } + } + void Workspace::addRepaint( int x, int y, int w, int h ) { if( !compositing()) diff --git a/workspace.h b/workspace.h index 7e12a2514b..7fdf6a32d5 100644 --- a/workspace.h +++ b/workspace.h @@ -490,6 +490,7 @@ class Workspace : public QObject, public KDecorationDefines void reconfigure(); void slotReconfigure(); void slotReinitCompositing(); + void resetCompositing(); void slotKillWindow();