Merge lp:~brandontschaefer/unity/lp.1313885-fix into lp:unity

Proposed by Brandon Schaefer
Status: Rejected
Rejected by: Brandon Schaefer
Proposed branch: lp:~brandontschaefer/unity/lp.1313885-fix
Merge into: lp:unity
Diff against target: 73 lines (+18/-3)
1 file modified
plugins/unityshell/src/unityshell.cpp (+18/-3)
To merge this branch: bzr merge lp:~brandontschaefer/unity/lp.1313885-fix
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Andrea Azzarone (community) Approve
Review via email: mp+217519@code.launchpad.net

Commit message

Workaround for Command lens, Alt+F1, Super+Tab short cuts by passing the lockscreen!

Description of the change

Workaround for Command lens, Alt+F1, Super+Tab short cuts by passing the lockscreen!

To post a comment you must log in.
3793. By Brandon Schaefer

* Fix style issue

Revision history for this message
Andrea Azzarone (azzar1) wrote :

LGTM.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Unmerged revisions

3793. By Brandon Schaefer

* Fix style issue

3792. By Brandon Schaefer

* Workaround for the command lens popping up (as well as a couple other shortcuts).
* The real issue, is right clicking enough gets you to the windows panel menu. This
  will need some time to dig into.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/unityshell.cpp'
2--- plugins/unityshell/src/unityshell.cpp 2014-04-17 18:53:52 +0000
3+++ plugins/unityshell/src/unityshell.cpp 2014-04-28 23:10:22 +0000
4@@ -2145,6 +2145,9 @@
5
6 void UnityScreen::SendExecuteCommand()
7 {
8+ if (lockscreen_controller_->IsLocked())
9+ return;
10+
11 if (hud_controller_->IsVisible())
12 {
13 hud_controller_->HideHud();
14@@ -2196,6 +2199,9 @@
15
16 bool UnityScreen::altTabInitiateCommon(CompAction* action, switcher::ShowMode show_mode)
17 {
18+ if (lockscreen_controller_->IsLocked())
19+ return true;
20+
21 if (!grab_index_)
22 {
23 if (switcher_controller_->IsMouseDisabled())
24@@ -2226,9 +2232,6 @@
25
26 void UnityScreen::SetUpAndShowSwitcher(switcher::ShowMode show_mode)
27 {
28- if(lockscreen_controller_->IsLocked())
29- return;
30-
31 RaiseInputWindows();
32
33 if (!optionGetAltTabBiasViewport())
34@@ -2356,6 +2359,9 @@
35
36 bool UnityScreen::launcherSwitcherForwardInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
37 {
38+ if (lockscreen_controller_->IsLocked())
39+ return true;
40+
41 if (!launcher_controller_->KeyNavIsActive())
42 {
43 int modifiers = action->key().modifiers();
44@@ -2386,6 +2392,9 @@
45
46 bool UnityScreen::launcherSwitcherPrevInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
47 {
48+ if (lockscreen_controller_->IsLocked())
49+ return true;
50+
51 launcher_controller_->KeyNavPrevious();
52
53 return true;
54@@ -2393,6 +2402,9 @@
55
56 bool UnityScreen::launcherSwitcherTerminate(CompAction* action, CompAction::State state, CompOption::Vector& options)
57 {
58+ if (lockscreen_controller_->IsLocked())
59+ return true;
60+
61 bool accept_state = (state & CompAction::StateCancel) == 0;
62 launcher_controller_->KeyNavTerminate(accept_state);
63
64@@ -2415,6 +2427,9 @@
65
66 void UnityScreen::OnLauncherStartKeyNav(GVariant* data)
67 {
68+ if (lockscreen_controller_->IsLocked())
69+ return;
70+
71 // Put the launcher BaseWindow at the top of the BaseWindow stack. The
72 // input focus coming from the XinputWindow will be processed by the
73 // launcher BaseWindow only. Then the Launcher BaseWindow will decide