3624
3624
int scale_offset = (launcher_options->hide_mode == LAUNCHER_HIDE_NEVER) ? 0 : launcher_controller_->launcher().GetWidth();
3625
3625
CompOption::Value v(scale_offset);
3626
screen->setOptionForPlugin("scale", "x_offset", v);
3626
CompOption::Value bv(0);
3627
if (Settings::Instance().launcher_position() == LauncherPosition::LEFT)
3629
screen->setOptionForPlugin("scale", "x_offset", v);
3630
screen->setOptionForPlugin("scale", "y_bottom_offset", bv);
3634
screen->setOptionForPlugin("scale", "x_offset", bv);
3635
screen->setOptionForPlugin("scale", "y_bottom_offset", v);
3629
3639
case UnityshellOptions::BacklightMode:
3836
3846
auto max_bounds = NuxGeometryFromCompRect(output.workArea());
3837
if (launcher_controller_->options()->hide_mode != LAUNCHER_HIDE_NEVER && Settings::Instance().launcher_position() == LauncherPosition::LEFT)
3847
if (launcher_controller_->options()->hide_mode != LAUNCHER_HIDE_NEVER)
3839
int monitor_width = unity_settings_.LauncherSize(monitor);
3840
max_bounds.x += monitor_width;
3841
max_bounds.width -= monitor_width;
3849
if (Settings::Instance().launcher_position() == LauncherPosition::LEFT)
3851
int monitor_width = unity_settings_.LauncherSize(monitor);
3852
max_bounds.x += monitor_width;
3853
max_bounds.width -= monitor_width;
3855
else if (Settings::Instance().launcher_position() == LauncherPosition::BOTTOM)
3857
int launcher_size = unity_settings_.LauncherSize(monitor);
3858
max_bounds.height -= launcher_size;
3844
3862
nux::Geometry final_bounds;
4099
4117
shortcut_controller_->SetAdjustment(adjustment_x, panel_style_.PanelHeight(launcher->monitor));
4101
4119
CompOption::Value v(launcher_size);
4102
if (launcher_position == LauncherPosition::BOTTOM)
4105
screen->setOptionForPlugin("expo", "x_offset", v);
4107
if (launcher_controller_->options()->hide_mode == LAUNCHER_HIDE_NEVER)
4110
screen->setOptionForPlugin("scale", "x_offset", v);
4120
if (launcher_position == LauncherPosition::LEFT)
4122
screen->setOptionForPlugin("expo", "x_offset", v);
4124
if (launcher_controller_->options()->hide_mode == LAUNCHER_HIDE_NEVER)
4127
screen->setOptionForPlugin("scale", "x_offset", v);
4130
screen->setOptionForPlugin("expo", "y_bottom_offset", v);
4131
screen->setOptionForPlugin("scale", "y_bottom_offset", v);
4135
screen->setOptionForPlugin("expo", "y_bottom_offset", v);
4137
if (launcher_controller_->options()->hide_mode == LAUNCHER_HIDE_NEVER)
4140
screen->setOptionForPlugin("scale", "y_bottom_offset", v);
4143
screen->setOptionForPlugin("expo", "x_offset", v);
4144
screen->setOptionForPlugin("scale", "x_offset", v);
4113
4148
auto check_launchers_size = [this, on_launcher_size_changed] {