summaryrefslogtreecommitdiff
path: root/lockscreen
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-29 00:33:48 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-29 00:33:48 +0200
commit07c5cb0174316e5224d62a8b13a614dd2cf8a714 (patch)
tree87269062e7de6ccab96c71c55f5a09bf9e9815ec /lockscreen
parentdf953d8dd062f33c839e360badd75c6733527e09 (diff)
LockScreenController: set the primary shield at the end of iteration
It's the safer way, since otherwise we might set two primary shields at the same time, and this might cause unparenting the Prompt View from the wrong parent, and thus to destroy it. (bzr r3844.10.24)
Diffstat (limited to 'lockscreen')
-rw-r--r--lockscreen/LockScreenController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lockscreen/LockScreenController.cpp b/lockscreen/LockScreenController.cpp
index 376fd8874..d8599b795 100644
--- a/lockscreen/LockScreenController.cpp
+++ b/lockscreen/LockScreenController.cpp
@@ -218,7 +218,7 @@ void Controller::EnsureShields(std::vector<nux::Geometry> const& monitors)
shield->SetGeometry(new_geo);
shield->SetMinMaxSize(new_geo.width, new_geo.height);
- shield->primary = (i == primary);
+ shield->primary = false;
shield->monitor = i;
// XXX: manually emit nux::Area::geometry_changed beucase nux can fail to emit it.