diff options
| author | Mirco Müller <mirco.mueller@canonical.com> | 2012-02-15 18:42:07 +0100 |
|---|---|---|
| committer | Mirco Müller <mirco.mueller@canonical.com> | 2012-02-15 18:42:07 +0100 |
| commit | 22d04c5acb67276139d06820fc61e53b0fef291e (patch) | |
| tree | 2ce7341c5eec51de20345ae55e7fa7963d103bd7 | |
| parent | 86a6f7b9f1ebefaf193e566b29c3417d7ce0c7ad (diff) | |
Best attempt yet, trying to fix LP: #863230
(bzr r1970.2.1)
| -rw-r--r-- | plugins/unityshell/src/Launcher.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/unityshell/src/Launcher.cpp b/plugins/unityshell/src/Launcher.cpp index 0fda7f396..9162c26f6 100644 --- a/plugins/unityshell/src/Launcher.cpp +++ b/plugins/unityshell/src/Launcher.cpp @@ -898,6 +898,13 @@ void Launcher::SetupRenderArg(AbstractLauncherIcon::Ptr icon, struct timespec co icon->GetIconType() == AbstractLauncherIcon::TYPE_DEVICE || icon->GetIconType() == AbstractLauncherIcon::TYPE_EXPO; + // trying to protect against flickering when icon is dragged from dash LP: #863230 + if (arg.alpha < 0.5) + { + arg.alpha = 0.5; + arg.saturation = 0.0; + } + if (_dash_is_open) arg.active_arrow = icon->GetIconType() == AbstractLauncherIcon::TYPE_HOME; else @@ -977,6 +984,13 @@ void Launcher::FillRenderArg(AbstractLauncherIcon::Ptr icon, if (drop_dim_value < 1.0f) arg.alpha *= drop_dim_value; + // trying to protect against flickering when icon is dragged from dash LP: #863230 + if (arg.alpha < 0.5) + { + arg.alpha = 0.5; + arg.saturation = 0.0; + } + if (icon == _drag_icon) { if (MouseBeyondDragThreshold()) |
