Merge lp:~mterry/unity-mir/no-focus into lp:unity-mir
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Michael Terry | ||||
Approved revision: | 226 | ||||
Merged at revision: | 225 | ||||
Proposed branch: | lp:~mterry/unity-mir/no-focus | ||||
Merge into: | lp:unity-mir | ||||
Diff against target: |
53 lines (+32/-0) 2 files modified
src/modules/Unity/Application/application_manager.cpp (+2/-0) tests/application_manager_test.cpp (+30/-0) |
||||
To merge this branch: | bzr merge lp:~mterry/unity-mir/no-focus | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gerry Boland (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Michał Sawicz | Needs Information | ||
Review via email: mp+220718@code.launchpad.net |
Commit message
If no app has focus when we get a un-actionable onSessionFocused event, still re-set focus to the shell.
Description of the change
If no app has focus when we get a un-actionable onSessionFocused event, still re-set focus to the shell.
During testing of split greeter, Saviq noticed that the volume up/down buttons didn't work. Some digging discovered that the android input layer thought nothing was focused and that it only happens after maliit-server is running.
Digging into unity-mir, it seems we discard onSessionFocused events that don't relate to an application (like maliit-server was generating). But apparently, android-input is a little confused at that point, and there is code in the function for re-setting the focus for the focused app.
But if no app has focus, we did nothing. In the case where no app has focus, we should also re-set the focus onto the shell. This fixed the volume bug for me.
== Checklist ==
* Are there any related MPs required for this MP to build/function as expected? Please list.
- No
* Did you perform an exploratory manual test run of your code change and any related functionality?
- Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
- NA
PASSED: Continuous integration, rev:224 jenkins. qa.ubuntu. com/job/ unity-mir- ci/349/ jenkins. qa.ubuntu. com/job/ unity-mir- utopic- amd64-ci/ 13 jenkins. qa.ubuntu. com/job/ unity-mir- utopic- armhf-ci/ 13 jenkins. qa.ubuntu. com/job/ unity-mir- utopic- armhf-ci/ 13/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity-mir- utopic- i386-ci/ 13
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- mir-ci/ 349/rebuild
http://