summaryrefslogtreecommitdiff
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2012-09-28 13:48:08 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2012-09-28 13:48:08 +0200
commit6cd2f6d04cb43696d9e4f8f291c6f086da0f26af (patch)
tree2aad1155b3b89b7514231dc436d4eda260bd7425
parent06d196b5625c1d31ab0020d5773ec5d67ba6b7f5 (diff)
Avoid code duplication.
(bzr r2765)
-rw-r--r--plugins/unityshell/src/unityshell.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 206f429cb..bdf616a44 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -1326,11 +1326,7 @@ void UnityScreen::donePaint()
wt->ClearDrawList();
if (animation_controller_->HasRunningAnimations())
- {
- cScreen->damageRegionSetEnabled(this, false);
- cScreen->damageScreen();
- cScreen->damageRegionSetEnabled(this, true);
- }
+ nuxDamageCompiz();
std::list <ShowdesktopHandlerWindowInterface *> remove_windows;