From 0181e2791e55f1eb04f58cb1e1fcf6dd8cd44383 Mon Sep 17 00:00:00 2001 From: Brandon Schaefer Date: Tue, 11 Mar 2014 13:02:41 -0700 Subject: * Fix issue when a new monitor is pluged in and the dash/hud do not get the correct offset based on the launcher_width (bzr r3702.8.1) --- plugins/unityshell/src/unityshell.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/unityshell') diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 37328a3c8..7707b0a85 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -3649,6 +3649,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 const&) { + for (auto const& launcher : launcher_controller_->launchers()) + on_launcher_size_changed(launcher.GetPointer(), launcher->GetWidth(), launcher->GetHeight()); + }); + ScheduleRelayout(0); } -- cgit v1.2.3