diff options
| author | handsome_feng <445865575@qq.com> | 2015-12-23 17:29:24 +0800 | 
|---|---|---|
| committer | handsome_feng <445865575@qq.com> | 2015-12-23 17:29:24 +0800 | 
| commit | 39d1e3b03e20ac6789d37278ce6510147e61e8ea (patch) | |
| tree | 0a1661b3d9b4a1240ef8888cee24ca53ae96e87a /hud | |
| parent | 2432f4191405393ca5272008b4306aea7296e311 (diff) | |
cleanups
(bzr r3999.7.16)
Diffstat (limited to 'hud')
| -rw-r--r-- | hud/HudController.cpp | 14 | 
1 files changed, 6 insertions, 8 deletions
| diff --git a/hud/HudController.cpp b/hud/HudController.cpp index 93ac38e0f..b09726be4 100644 --- a/hud/HudController.cpp +++ b/hud/HudController.cpp @@ -273,15 +273,13 @@ void Controller::Relayout(bool check_monitor)  view_->QueueDraw();  window_->SetGeometry(geo);  panel::Style &panel_style = panel::Style::Instance(); + + int horizontal_offset = 0; +  if (Settings::Instance().launcher_position() == LauncherPosition::LEFT) - { - int launcher_width = unity::Settings::Instance().LauncherSize(monitor_index_); - view_->SetMonitorOffset(launcher_width, panel_style.PanelHeight(monitor_index_)); - } - else - { - view_->SetMonitorOffset(0, panel_style.PanelHeight(monitor_index_)); - } + horizontal_offset = unity::Settings::Instance().LauncherSize(monitor_index_); + + view_->SetMonitorOffset(horizontal_offset, panel_style.PanelHeight(monitor_index_));  }  void Controller::OnMouseDownOutsideWindow(int x, int y, | 
