diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-07-04 14:35:12 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-07-04 14:35:12 +0200 |
| commit | b489e6dd87affe23fc55094b447b967ce1273de9 (patch) | |
| tree | e8f66a3868da67c5beb0ddfb301c2126f37ef07f /shortcuts | |
| parent | 8c6bdac1576831c7f643e532fb8c819006f83718 (diff) | |
Views: setup fade animators durations based on low-gfx setting
(bzr r4132.6.3)
Diffstat (limited to 'shortcuts')
| -rw-r--r-- | shortcuts/ShortcutController.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shortcuts/ShortcutController.cpp b/shortcuts/ShortcutController.cpp index 2ca388af7..82ee3b883 100644 --- a/shortcuts/ShortcutController.cpp +++ b/shortcuts/ShortcutController.cpp @@ -22,6 +22,7 @@ #include "unity-shared/AnimationUtils.h" #include "unity-shared/UBusMessages.h" +#include "unity-shared/UnitySettings.h" #include "unity-shared/UScreen.h" #include "unity-shared/WindowManager.h" @@ -42,7 +43,7 @@ Controller::Controller(BaseWindowRaiser::Ptr const& base_window_raiser, , base_window_raiser_(base_window_raiser) , visible_(false) , enabled_(true) - , fade_animator_(FADE_DURATION) + , fade_animator_(Settings::Instance().low_gfx() ? 0 : FADE_DURATION) { ubus_manager_.RegisterInterest(UBUS_LAUNCHER_START_KEY_SWITCHER, [this] (GVariant*) { SetEnabled(false); }); |
