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 /plugins | |
| parent | 2432f4191405393ca5272008b4306aea7296e311 (diff) | |
cleanups
(bzr r3999.7.16)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index a42b38980..471214e7b 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -4070,10 +4070,10 @@ void UnityScreen::InitUnityComponents() launcher_size = h - (1_em).CP(unity_settings_.em(launcher->monitor)->DPIScale()); unity::Settings::Instance().SetLauncherSize(launcher_size, launcher->monitor); + int adjustment_x = 0; if (Settings::Instance().launcher_position == LauncherPosition::LEFT) - shortcut_controller_->SetAdjustment(launcher_size, panel_style_.PanelHeight(launcher->monitor)); - else - shortcut_controller_->SetAdjustment(0, panel_style_.PanelHeight(launcher->monitor)); + adjustment_x = launcher_size; + shortcut_controller_->SetAdjustment(adjustment_x, panel_style_.PanelHeight(launcher->monitor)); CompOption::Value v(launcher_size); screen->setOptionForPlugin("expo", "x_offset", v); |
