← Back to team overview

ubuntu-phone team mailing list archive

Re: Unity8 & Mir update Feb 27, 2014

 

On 02/28/2014 10:30 AM, Thomas Voß wrote:
> Nope, the trusted session approach is different in that it will be not
> available to ordinary clients. We do not allow the client to be able
> to interfere with the stacking order and instead enable a trusted
> helper to:
> 
>   (1.) Create a trusted session and add participating apps and surfaces to it.
>   (2.) Start the trusted session. At that point, Mir & Unity8 take
> over and carry out a well-defined set of operations, including
> on-screen transitions.
>   (3.) Be notified when the trusted session ends.

I hope to be proved wrong, but I've the feeling that this can be racy:
we need to make sure that the trusted helper manages to start the
trusted session before the participating apps have shown their windows,
or you won't be able to see the correct transitions.
I think that this needs some cooperation from the application, meaning
that it needs to be aware of the fact that it's taking part in a trusted
session.

> All of this is entirely transparent to an application and there is no
> need to expose this to the toolkit at this point.

I'm selfishly thinking only about the trusted helper now: I've currently
code for window reparenting using QWindow::setTransientParent() which
works on X11 (because the xcb QPA plugin handles that for me), and it
would be nice if I could reuse the same code. If the trusted session
were handled via the Mir QPA, I would avoid a dependency on Mir and a
few #ifdef's. It's not a big issue, but a nice to have. :-)

Ciao,
  Alberto



Follow ups

References