From 1e31d287dcd3dfbdd7d45fdcc24e1cf9b01e8d9c Mon Sep 17 00:00:00 2001 From: Andrea Azzarone Date: Mon, 25 Jul 2016 13:45:40 +0200 Subject: Invert order of the boolean operation. (bzr r4153.5.2) --- plugins/unityshell/src/unityshell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 67a7e7018..9f0a57ef7 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -3189,7 +3189,7 @@ bool UnityWindow::glDraw(const GLMatrix& matrix, bool UnityWindow::damageRect(bool initial, CompRect const& rect) { - if (!CanBypassLockScreen() && uScreen->lockscreen_controller_->IsLocked()) + if (uScreen->lockscreen_controller_->IsLocked() && !CanBypassLockScreen()) return true; if (initial) -- cgit v1.2.3