summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2014-05-20 16:32:58 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2014-05-20 16:32:58 +0200
commit4a613dbe803b39c1421543924b21fb43dfb682dc (patch)
tree0cc3eb1d6afc5732636e5c70e1ad84c7585d6bed /plugins/unityshell
parent837affc668bcff2d38c8feeee19a16c49df42d9d (diff)
Remove cross fade effect during lock/unlocking. A simple fading works just fine.
Fixes LP: #1312107 (bzr r3806.9.1)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/unityshell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 283275e6b..b339e6e7b 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -2906,7 +2906,7 @@ bool UnityWindow::glPaint(const GLWindowPaintAttrib& attrib,
GLWindowPaintAttrib wAttrib = attrib;
- if (uScreen->lockscreen_controller_->IsLocked())
+ if (uScreen->lockscreen_controller_->IsLocked() && uScreen->lockscreen_controller_->opacity() == 1.0)
{
if (!window->minimized() && !CanBypassLockScreen())
{
@@ -2914,7 +2914,7 @@ bool UnityWindow::glPaint(const GLWindowPaintAttrib& attrib,
// (well, it works too much, as it applies to menus too), so we need
// to paint the windows at the proper opacity, overriding any other
// paint plugin (animation, fade?) that might interfere with us.
- wAttrib.opacity = COMPIZ_COMPOSITE_OPAQUE * (1.0f - uScreen->lockscreen_controller_->opacity());
+ wAttrib.opacity = 0.0;
int old_index = gWindow->glPaintGetCurrentIndex();
gWindow->glPaintSetCurrentIndex(MAXSHORT);
bool ret = gWindow->glPaint(wAttrib, matrix, region, mask);