summaryrefslogtreecommitdiff
diff options
-rw-r--r--plugins/unityshell/src/unityshell.cpp3
-rw-r--r--tests/autopilot/unity/tests/test_shortcut_hint.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index f572f4e4f..fdfa714bf 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -1588,6 +1588,7 @@ void UnityScreen::handleEvent(XEvent* event)
sources_.AddIdle([&] {
shortcut_controller_->SetEnabled(false);
shortcut_controller_->Hide();
+ LOG_DEBUG(logger) << "Hiding shortcut controller due to keypress event.";
EnableCancelAction(CancelActionTarget::SHORTCUT_HINT, false);
return false;
@@ -1736,6 +1737,7 @@ bool UnityScreen::showLauncherKeyInitiate(CompAction* action,
if (shortcut_controller_->Show())
{
+ LOG_DEBUG(logger) << "Showing shortcut hint.";
shortcut_controller_->SetAdjustment(launcher_width, panel_height);
EnableCancelAction(CancelActionTarget::SHORTCUT_HINT, true, action->key().modifiers());
}
@@ -1794,6 +1796,7 @@ bool UnityScreen::showLauncherKeyTerminate(CompAction* action,
shortcut_controller_->SetEnabled(enable_shortcut_overlay_);
shortcut_controller_->Hide();
+ LOG_DEBUG(logger) << "Hiding shortcut controller";
EnableCancelAction(CancelActionTarget::SHORTCUT_HINT, false);
action->setState (action->state() & (unsigned)~(CompAction::StateTermKey));
diff --git a/tests/autopilot/unity/tests/test_shortcut_hint.py b/tests/autopilot/unity/tests/test_shortcut_hint.py
index 5af6f883d..951de4d58 100644
--- a/tests/autopilot/unity/tests/test_shortcut_hint.py
+++ b/tests/autopilot/unity/tests/test_shortcut_hint.py
@@ -27,6 +27,7 @@ class BaseShortcutHintTests(UnityTestCase):
self.shortcut_hint = self.get_shortcut_controller()
self.set_unity_option('shortcut_overlay', True)
+ self.set_unity_log_level("unity.shell.compiz", "DEBUG")
self.skip_if_monitor_too_small()
sleep(1)