summaryrefslogtreecommitdiff
path: root/launcher
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-10-22 01:48:47 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-10-22 01:48:47 +0200
commitc5e7c2da247fdb1d4869957cde78bbc9541c1737 (patch)
treefc3509e5438d3314c67a4070d420ef50608270d2 /launcher
parent2f95d296d4eb224c861bb9d9c33f32fc5a03fd53 (diff)
LauncherController: reset icon centers when monitor geometries change
(bzr r3566.5.4)
Diffstat (limited to 'launcher')
-rw-r--r--launcher/LauncherController.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/LauncherController.cpp b/launcher/LauncherController.cpp
index de345c4f4..e4df86642 100644
--- a/launcher/LauncherController.cpp
+++ b/launcher/LauncherController.cpp
@@ -199,6 +199,10 @@ void Controller::Impl::EnsureLaunchers(int primary, std::vector<nux::Geometry> c
unsigned int launchers_size = launchers.size();
unsigned int last_launcher = 0;
+ // Reset the icon centers: only the used icon centers must contain valid values
+ for (auto const& icon : *model_)
+ icon->ResetCenters();
+
for (unsigned int i = 0; i < num_launchers; ++i, ++last_launcher)
{
if (i >= launchers_size)