summaryrefslogtreecommitdiff
diff options
authorBrandon Schaefer <brandontschaefer@gmail.com>2014-03-12 23:46:21 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-03-12 23:46:21 +0000
commitf742eb758c81e68cd867286e07c1a4c20f7242ba (patch)
tree02591bf3887dda20188a811ae7882950c23b9fae
parent90734e4bd1f48ddbb62526340492276de071878c (diff)
parentf7eb9c5004ba22e5d5f220631440dd42f47b437b (diff)
When the monitors change, go through and update all the launcher widths for all launchers. Fixes: 1291034
(bzr r3718)
-rw-r--r--plugins/unityshell/src/unityshell.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 087ec5441..1157ddb25 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -3801,6 +3801,11 @@ void UnityScreen::initLauncher()
on_launcher_size_changed(launcher.GetPointer(), launcher->GetWidth(), launcher->GetHeight());
}
+ UScreen::GetDefault()->changed.connect([this, on_launcher_size_changed] (int, std::vector<nux::Geometry> const&) {
+ for (auto const& launcher : launcher_controller_->launchers())
+ on_launcher_size_changed(launcher.GetPointer(), launcher->GetWidth(), launcher->GetHeight());
+ });
+
launcher_controller_->options()->scroll_inactive_icons = optionGetScrollInactiveIcons();
ScheduleRelayout(0);