Merge lp:~3v1n0/unity/lockscreen-shield-ensure-grab into lp:unity
Proposed by
Marco Trevisan (Treviño)
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3847 |
Proposed branch: | lp:~3v1n0/unity/lockscreen-shield-ensure-grab |
Merge into: | lp:unity |
Diff against target: |
158 lines (+40/-23) 4 files modified
lockscreen/LockScreenController.cpp (+1/-1) lockscreen/LockScreenShield.cpp (+35/-22) lockscreen/LockScreenShield.h (+3/-0) unity-shared/PluginAdapter.cpp (+1/-0) |
To merge this branch: | bzr merge lp:~3v1n0/unity/lockscreen-shield-ensure-grab |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Azzarone (community) | Approve | ||
Brandon Schaefer (community) | Approve | ||
Review via email: mp+228968@code.launchpad.net |
Commit message
LockScreenShield: Add GrabScreen function and retry to make sure we really get grab
It might happen that the grab is not possible because the PluginAdapter:
request has still not being fully processed, and thus nux is not able to grab the
pointer/keyboard. By doing this we instead try to grab the screen, and if this is
not happening, we wait a little until we don't get the ungrab event.
In this way, if we eventually get the grab, all will work as expected.
Otherwise, we cancel the lock request (very unlikely to happen).
To post a comment you must log in.
LGTM