diff options
| author | Brandon Schaefer <brandontschaefer@gmail.com> | 2014-03-12 23:46:21 +0000 | 
|---|---|---|
| committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-03-12 23:46:21 +0000 | 
| commit | f742eb758c81e68cd867286e07c1a4c20f7242ba (patch) | |
| tree | 02591bf3887dda20188a811ae7882950c23b9fae | |
| parent | 90734e4bd1f48ddbb62526340492276de071878c (diff) | |
| parent | f7eb9c5004ba22e5d5f220631440dd42f47b437b (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.cpp | 5 | 
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);  | 
