Merge lp://qastaging/~townsend/unity/lp1070715 into lp://qastaging/unity
Proposed by
Christopher Townsend
Status: | Merged |
---|---|
Approved by: | Christopher Townsend |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3158 |
Proposed branch: | lp://qastaging/~townsend/unity/lp1070715 |
Merge into: | lp://qastaging/unity |
Diff against target: |
52 lines (+28/-1) 2 files modified
launcher/SwitcherModel.cpp (+8/-1) tests/test_switcher_model.cpp (+20/-0) |
To merge this branch: | bzr merge lp://qastaging/~townsend/unity/lp1070715 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brandon Schaefer (community) | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+148036@code.qastaging.launchpad.net |
Commit message
Webapps cause two active applications in some cases, so added a check to only pick up the first active app which is the web browser. Fixes: https:/
Description of the change
When using Webapps, two icons are considered Active. The logic to find the last active application did not take this into account. Since a Webapp is always the last icon, this change picks up the first active app in the SwitcherModel constructor.
Also added a unit test to simulate the condition of a Webapp being active.
To post a comment you must log in.
This seems to work, and I don't see regressions (more important thing here! :)).
However, at this point you can remove the last_active_ application_ var at all from the model.
Also, would be nice to have some test (even if this maybe somewhat already tested). I think there are some in test_switcher_ model.cpp that should inspire you.