diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-10-22 01:48:47 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-10-22 01:48:47 +0200 |
| commit | c5e7c2da247fdb1d4869957cde78bbc9541c1737 (patch) | |
| tree | fc3509e5438d3314c67a4070d420ef50608270d2 /launcher | |
| parent | 2f95d296d4eb224c861bb9d9c33f32fc5a03fd53 (diff) | |
LauncherController: reset icon centers when monitor geometries change
(bzr r3566.5.4)
Diffstat (limited to 'launcher')
| -rw-r--r-- | launcher/LauncherController.cpp | 4 |
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) |
