Merge lp://staging/~brandontschaefer/unity/disable-switcher-when-wall-active into lp://staging/unity
Proposed by
Brandon Schaefer
Status: | Merged |
---|---|
Approved by: | Brandon Schaefer |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2551 |
Proposed branch: | lp://staging/~brandontschaefer/unity/disable-switcher-when-wall-active |
Merge into: | lp://staging/unity |
Diff against target: |
792 lines (+225/-176) 9 files modified
launcher/SwitcherController.cpp (+7/-0) launcher/SwitcherController.h (+2/-0) plugins/unityshell/src/unityshell.cpp (+4/-2) tests/autopilot/unity/tests/test_switcher.py (+16/-0) unity-shared/PluginAdapter.h (+23/-21) unity-shared/PluginAdapterCompiz.cpp (+25/-19) unity-shared/PluginAdapterStandalone.cpp (+70/-64) unity-shared/WindowManager.cpp (+59/-53) unity-shared/WindowManager.h (+19/-17) |
To merge this branch: | bzr merge lp://staging/~brandontschaefer/unity/disable-switcher-when-wall-active |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
Thomi Richards (community) | quality | Approve | |
Review via email: mp+117997@code.staging.launchpad.net |
Commit message
Switcher is now disabled when the Wall plugin is Active.
Description of the change
=== Problem ===
When the wall plugin is active (while switching workspaces) Alt+Tab would pick up the wrong workspace.
=== Fix ===
When the wall plugin is active the switcher must be disabled. It is now.
=== Test ===
AP test
To post a comment you must log in.
Hi,
10 + return (!(results.size() == 1 && 0]->GetIconType () == AbstractLaunche rIcon:: IconType: :TYPE_DESKTOP) && :Default( )->IsWallActive () &&
11 + results[
12 + !WindowManager:
13 + !results.empty());
Can we please change this to be a bit more sane? First of all, you're checking both "results.size() == 1" and then later checking "!results.empty()". If the first is true, the second will always be true. I'm also not a fn of multi-line code that requires you to write "(!(".
71 + self.workspace. switch_ to(0) press(" Ctrl+Alt+ Right") _hold_part_ then_tap( "switcher/ reveal_ normal" ) (self.switcher. terminate) release( "Ctrl+Alt" )
72 + sleep(1)
73 + self.keyboard.
74 + sleep(1)
75 + self.keybinding
76 + self.addCleanup
77 + self.keyboard.
This will leave keys in a pressed state. Please add cleanup actions to release the Ctrl+Alt+Right keys.
Other than that, looks good!