Merge lp:~albaguirre/unity-mir/hide-surface-during-app-suspend into lp:unity-mir
Proposed by
Alberto Aguirre
Status: | Merged |
---|---|
Approved by: | Alberto Aguirre |
Approved revision: | 176 |
Merged at revision: | 183 |
Proposed branch: | lp:~albaguirre/unity-mir/hide-surface-during-app-suspend |
Merge into: | lp:unity-mir |
Diff against target: |
21 lines (+4/-0) 1 file modified
src/modules/Unity/Application/application.cpp (+4/-0) |
To merge this branch: | bzr merge lp:~albaguirre/unity-mir/hide-surface-during-app-suspend |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Gerry Boland (community) | Approve | ||
Andreas Pokorny (community) | Approve | ||
Review via email: mp+205695@code.launchpad.net |
Commit message
Set the visibility state on the mir surface attached to the application during suspend/resume states.
By setting the visibility state (hide) of the mir surface during an appilcation suspend state, mir can avoid compositing the surface even regardless of opaqueness and alpha pixel format.
fixes: lp: #1227739
Description of the change
Set the visibility state on the mir surface attached to the application during suspend/resume states.
By setting the visibility state (hide) of the mir surface during an appilcation suspend state, mir can avoid compositing the surface regardless of opaqueness and alpha pixel format.
fixes: lp: #1227739
To post a comment you must log in.
+ 16ff and +28 I believe you can achieve the same with less code - simply call session()->hide() and session()->show(); Additionally it would then also work for sessions that have more than one surface.