Merge lp:~mterry/unity-mir/dont-hide-focused-apps into lp:unity-mir
Status: | Merged |
---|---|
Approved by: | Gerry Boland |
Approved revision: | 226 |
Merged at revision: | 224 |
Proposed branch: | lp:~mterry/unity-mir/dont-hide-focused-apps |
Merge into: | lp:unity-mir |
Diff against target: |
188 lines (+88/-10) 4 files modified
src/modules/Unity/Application/application.cpp (+0/-4) src/modules/Unity/Application/application_manager.cpp (+12/-5) src/modules/Unity/Application/application_manager.h (+1/-1) tests/application_manager_test.cpp (+75/-0) |
To merge this branch: | bzr merge lp:~mterry/unity-mir/dont-hide-focused-apps |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gerry Boland (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+220130@code.launchpad.net |
Commit message
Separate suspend logic from visibility logic, to allow top app to remain visible even when suspended.
Description of the change
Separate suspend logic from visibility logic, to allow top app to remain visible even when suspended.
When testing the split greeter, Saviq noticed that the user session would go black if an app was open while the greeter was up (sliding the greeter lets you peek at user session).
This is because unity-mir hides() app sessions when they are suspended to optimized compositing. But the top app should remain visible for cross-session compositing like the greeter wants to do.
So don't automatically hide() when suspending, but instead only hide() if we are unfocusing an app to bring another app above it.
(We still automatically show() when resuming because we want to ensure that the app is visible now.)
== 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:222 jenkins. qa.ubuntu. com/job/ unity-mir- ci/344/ jenkins. qa.ubuntu. com/job/ unity-mir- utopic- amd64-ci/ 8 jenkins. qa.ubuntu. com/job/ unity-mir- utopic- armhf-ci/ 8 jenkins. qa.ubuntu. com/job/ unity-mir- utopic- armhf-ci/ 8/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity-mir- utopic- i386-ci/ 8
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/ 344/rebuild
http://