diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-07-04 16:21:00 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-07-04 16:21:00 +0200 |
| commit | 2aebface45bb16088866870da1e6702e88c15e62 (patch) | |
| tree | 023952bf952e7b48899fe3e2b6c79fcd4c3e41c2 /plugins | |
| parent | 16a42a48be20e9f7423f38ae6ad79f1d71253ce7 (diff) | |
| parent | 55b34f7fba58528d2625bba13dcd1a6d0ed39c02 (diff) | |
Merging with lp:~hikiko/unity/unity.showdesktop
(bzr r4132.6.5)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/unityshell/src/UnityShowdesktopHandler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/unityshell/src/UnityShowdesktopHandler.cpp b/plugins/unityshell/src/UnityShowdesktopHandler.cpp index 1f5bc2038..5ef286cac 100644 --- a/plugins/unityshell/src/UnityShowdesktopHandler.cpp +++ b/plugins/unityshell/src/UnityShowdesktopHandler.cpp @@ -21,6 +21,7 @@ #include <glib.h> #include "UnityShowdesktopHandler.h" +#include "unity-shared/UnitySettings.h" namespace unity { @@ -99,7 +100,7 @@ void ShowdesktopHandler::FadeOut() return; state_ = ShowdesktopHandler::StateFadeOut; - progress_ = 0.0f; + progress_ = Settings::Instance().low_gfx() ? 1.0f : 0.0f; was_hidden_ = showdesktop_handler_window_interface_->Hidden(); @@ -143,7 +144,7 @@ ShowdesktopHandlerWindowInterface::PostPaintAction ShowdesktopHandler::Animate ( if (state_ == ShowdesktopHandler::StateFadeOut) { - progress_ += inc; + progress_ = Settings::Instance().low_gfx() ? 1.0f : progress_ + inc; if (progress_ >= 1.0f) { progress_ = 1.0f; @@ -152,7 +153,7 @@ ShowdesktopHandlerWindowInterface::PostPaintAction ShowdesktopHandler::Animate ( } else if (state_ == StateFadeIn) { - progress_ -= inc; + progress_ = Settings::Instance().low_gfx() ? 0.0f : progress_ - inc; if (progress_ <= 0.0f) { progress_ = 0.0f; |
