~dandrader/qtmir/promptBeforeSurfaceDraws

Viewing all changes in revision 485.

  • Committer: Daniel d'Andrada
  • Date: 2016-05-10 20:13:37 UTC
  • Revision ID: daniel.dandrada@canonical.com-20160510201337-ghsx5fz75u5ilg3r
Session: Add a blank surface to the public list if it already has child prompt surfaces

A prompt session may come in too early, before its parent session got a chance
to draw its surface's first frame.

Normally that wouldn't be a problem and we could withhold that parent surface until
it's finally drawn to. But unfortunately the application process might be blocked,
unable to draw anything, until its child prompt session gets dismissed.

Because of that we have no option but to expose this blank surface to shell so that
it can display it along with the prompt surface on top of it, so that the user can
interact with it right away and finally unblock the application.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: