diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-12-22 19:12:18 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-12-22 19:12:18 +0100 |
| commit | ecd7b21e1303dcca1b7aa1741fef9d449d56000a (patch) | |
| tree | 77618cc55053bc48642b20e91b190f4762b57d49 /dash | |
| parent | 881718c2b610e80197f9017f1876c98e80aa45d0 (diff) | |
DashController: cleanup setting monitor offset
(bzr r3999.8.6)
Diffstat (limited to 'dash')
| -rw-r--r-- | dash/DashController.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dash/DashController.cpp b/dash/DashController.cpp index 2d2799654..26c636676 100644 --- a/dash/DashController.cpp +++ b/dash/DashController.cpp @@ -260,13 +260,13 @@ void Controller::Relayout(bool check_monitor) view_->Relayout(); window_->SetGeometry(geo); + + int horizontal_offset = 0; + if (Settings::Instance().launcher_position() == LauncherPosition::LEFT) - { - int launcher_width = unity::Settings::Instance().LauncherSize(monitor_); - view_->SetMonitorOffset(launcher_width, panel::Style::Instance().PanelHeight(monitor_)); - } - else - view_->SetMonitorOffset(0, panel::Style::Instance().PanelHeight(monitor_)); + horizontal_offset = unity::Settings::Instance().LauncherSize(monitor_); + + view_->SetMonitorOffset(horizontal_offset, panel::Style::Instance().PanelHeight(monitor_)); } void Controller::OnMouseDownOutsideWindow(int x, int y, |
