summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-09-14 11:58:26 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-09-14 11:58:26 +0200
commitb66527337c02f837e1a49f9ff7eb94b4b1377bce (patch)
treed3fe7f7ea19c0f75ccbfa852391c4fce57dc64e1 /plugins/unityshell
parent0cbc53e4de17ffb267816484d123505555f675d8 (diff)
UnityScreen: consume the key actions or they will be repeated around
(bzr r1820.4.6)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/unityshell.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 856c88e05..4c7ca7aba 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -2175,8 +2175,7 @@ bool UnityScreen::maximizeKeyInitate(CompAction* action, CompAction::State state
{
auto& WM = WindowManager::Default();
WM.Maximize(WM.GetActiveWindow());
-
- return false;
+ return true;
}
bool UnityScreen::restoreMinimizeKeyInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
@@ -2194,23 +2193,21 @@ bool UnityScreen::restoreMinimizeKeyInitiate(CompAction* action, CompAction::Sta
WM.Minimize(focused_win);
}
- return false;
+ return true;
}
bool UnityScreen::rightMaximizeKeyInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
{
auto& WM = WindowManager::Default();
WM.RightMaximize(WM.GetActiveWindow());
-
- return false;
+ return true;
}
bool UnityScreen::leftMaximizeKeyInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
{
auto& WM = WindowManager::Default();
WM.LeftMaximize(WM.GetActiveWindow());
-
- return false;
+ return true;
}
void UnityScreen::OnLauncherStartKeyNav(GVariant* data)