summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorBrandon Schaefer <brandontschaefer@gmail.com>2014-03-12 16:17:28 -0700
committerBrandon Schaefer <brandontschaefer@gmail.com>2014-03-12 16:17:28 -0700
commitf7eb9c5004ba22e5d5f220631440dd42f47b437b (patch)
treebd2559a48cdb9598f4e1937390007c4404f18bd8 /plugins/unityshell
parentd1c86c84657cb6e4f498cd75067ea0428a27ee1e (diff)
parent712fc00c2bd830f82fc9238b783bdd9c27eb99b0 (diff)
* Merge Chris's branch
(bzr r3702.8.3)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/unityshell.cpp7
-rw-r--r--plugins/unityshell/unityshell.xml.in6
2 files changed, 13 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index f6cbdefaf..4ec6286ec 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -374,6 +374,8 @@ UnityScreen::UnityScreen(CompScreen* screen)
optionSetNumLaunchersNotify(boost::bind(&UnityScreen::optionChanged, this, _1, _2));
optionSetLauncherCaptureMouseNotify(boost::bind(&UnityScreen::optionChanged, this, _1, _2));
+ optionSetScrollInactiveIconsNotify(boost::bind(&UnityScreen::optionChanged, this, _1, _2));
+
ubus_manager_.RegisterInterest(UBUS_LAUNCHER_START_KEY_NAV,
sigc::mem_fun(this, &UnityScreen::OnLauncherStartKeyNav));
@@ -3367,6 +3369,9 @@ void UnityScreen::optionChanged(CompOption* opt, UnityshellOptions::Options num)
case UnityshellOptions::LauncherCaptureMouse:
launcher_options->edge_resist = optionGetLauncherCaptureMouse();
break;
+ case UnityshellOptions::ScrollInactiveIcons:
+ launcher_options->scroll_inactive_icons = optionGetScrollInactiveIcons();
+ break;
case UnityshellOptions::BackgroundColor:
{
auto override_color = NuxColorFromCompizColor(optionGetBackgroundColor());
@@ -3703,6 +3708,8 @@ void UnityScreen::initLauncher()
on_launcher_size_changed(launcher.GetPointer(), launcher->GetWidth(), launcher->GetHeight());
});
+ launcher_controller_->options()->scroll_inactive_icons = optionGetScrollInactiveIcons();
+
ScheduleRelayout(0);
}
diff --git a/plugins/unityshell/unityshell.xml.in b/plugins/unityshell/unityshell.xml.in
index fd7e4ec6f..cefb87537 100644
--- a/plugins/unityshell/unityshell.xml.in
+++ b/plugins/unityshell/unityshell.xml.in
@@ -356,6 +356,12 @@
<default>true</default>
</option>
+ <option name="scroll_inactive_icons" type="bool">
+ <_short>Scroll Inactive Icon to Focus Application</_short>
+ <_long>Allows using the mouse scrollwheel to focus an application if the icon is inactive.</_long>
+ <default>true</default>
+ </option>
+
<option name="edge_responsiveness" type="float">
<_short>Launcher Reveal Edge Responsiveness</_short>
<_long>A conglomerate setting that modifies the overall responsiveness of the Launcher reveal.</_long>