~bregma/unity/lp-1059275

Viewing all changes in revision 3847.

  • Committer: CI bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2014-07-31 18:39:00 UTC
  • mfrom: (3844.2.4 lockscreen-shield-regrab)
  • Revision ID: ps-jenkins@lists.canonical.com-20140731183900-51hnhz84wf2iny7c
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::IsScreenGrabbed
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). Fixes: 1349128
Approved by: Brandon Schaefer

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: