diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2016-07-22 10:51:24 +0200 |
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2016-07-22 10:51:24 +0200 |
| commit | 9c8ede152b96c6a7037f89d52d365aa0147677b8 (patch) | |
| tree | 0966b8d2e590ba94b3ed94ffad9ab0e01de596a5 /plugins/unityshell | |
| parent | c1f5463c91a7528ae013182ad0bc8b832d934fa6 (diff) | |
When locked discard damages from windows below lockscreen.
Fixes LP: #1605180 (bzr r4153.5.1)
Diffstat (limited to 'plugins/unityshell')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |
