From 1c2ba6ea17bd5cfcb7feeb2551dfd4e0e5998138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 11 Feb 2009 14:29:32 +0000 Subject: [PATCH] I forgot to actually implement the resetCompositing() slot for the previous commit. svn path=/trunk/KDE/kdebase/workspace/; revision=924759 --- composite.cpp | 9 +++++++++ workspace.h | 1 + 2 files changed, 10 insertions(+) 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();