From 9c8ede152b96c6a7037f89d52d365aa0147677b8 Mon Sep 17 00:00:00 2001 From: Andrea Azzarone Date: Fri, 22 Jul 2016 10:51:24 +0200 Subject: When locked discard damages from windows below lockscreen. Fixes LP: #1605180 (bzr r4153.5.1) --- plugins/unityshell/src/unityshell.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index eae3e412a..67a7e7018 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -3189,6 +3189,9 @@ bool UnityWindow::glDraw(const GLMatrix& matrix, bool UnityWindow::damageRect(bool initial, CompRect const& rect) { + if (!CanBypassLockScreen() && uScreen->lockscreen_controller_->IsLocked()) + return true; + if (initial) deco_win_->Update(); -- cgit v1.2.3