summaryrefslogtreecommitdiff
path: root/plugins
diff options
authorEleni Maria Stea <elenimaria.stea@canonical.com>2017-03-17 13:14:06 +0200
committerEleni Maria Stea <elenimaria.stea@canonical.com>2017-03-17 13:14:06 +0200
commitb7c9ac619b20a7643dc44dc1f71be9d4981e8388 (patch)
tree32c7eb5b3e2a3dc647a025ee248cf9b69c618308 /plugins
parentfe1bdcc4e37eb9a8a6661d49106552d4986fe87f (diff)
parentca69f6e15fdc8710a312c90f1f104b643dbc7d27 (diff)
merged lowgfx-fixes branch
(bzr r4213.3.12)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/unityshell/src/unityshell.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 12c426a21..b8a1c4877 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -306,6 +306,13 @@ UnityScreen::UnityScreen(CompScreen* screen)
{
unity_settings_.low_gfx = false;
}
+
+ if (unity_settings_.low_gfx())
+ BackgroundEffectHelper::blur_type = BLUR_NONE;
+
+ Settings::Instance().low_gfx.changed.connect(sigc::track_obj([this] (bool low_gfx) {
+ BackgroundEffectHelper::blur_type = low_gfx ? BLUR_NONE : (unity::BlurType) optionGetDashBlurExperimental();
+ }, *this));
#endif
if (!failed)