notify decorations when compositing is suspended

svn path=/trunk/KDE/kdebase/workspace/; revision=1021802
This commit is contained in:
Hugo Pereira Da Costa 2009-09-10 05:05:44 +00:00
parent 39731f6d8c
commit 3004fba3ce

View file

@ -314,6 +314,9 @@ void Workspace::suspendCompositing( bool suspend )
compositingSuspended = suspend;
finishCompositing();
setupCompositing(); // will do nothing if suspended
// notify decorations that composition state has changed
KDecorationFactory* factory = mgr->factory();
factory->reset(SettingCompositing);
emit compositingToggled( !compositingSuspended );
}