[Question] Z-order management in Wayland

Jasper St. Pierre jstpierre at mecheye.net
Thu Jul 31 01:14:26 PDT 2014


Sure. You can do this from your compositor. Weston has internal APIs known
as "layers", and these control stacking order. To pause the previous
application, you can stop calling the callback used from "frame". This
might require some extra work in compositor.c to not send the callbacks if
they're in a special "paused" layer, but it can be done.


On Thu, Jul 31, 2014 at 10:02 AM, <yan.wang at linux.intel.com> wrote:

> E.g. When we start a new application on mobile platform, previous running
> application could be hidden and paused to reduce power consuming
> and improve response speed. If we could adjust and get z-order status, we
> could callback application to sleep. And when user restart this
> application, we could just make this slept app waked up.
>
> Yan Wang
>
> > There is currently no way to influence the stacking order of top-level
> > surfaces. Why do you need this?
> > On Jul 31, 2014 9:28 AM, <yan.wang at linux.intel.com> wrote:
> >
> >> Hi, All,
> >>    I found X provides raise/lower APIs to manger window Z-order. But
> >> there
> >> isn't related APIs in Wayland/Weston.
> >>    May it should be one design idea of Wayland in fact or I could
> >> achieve
> >> this  by current Wayland protocol?
> >>    Thanks.
> >>
> >> Yan Wang
> >> _______________________________________________
> >> wayland-devel mailing list
> >> wayland-devel at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
> >>
> > _______________________________________________
> > wayland-devel mailing list
> > wayland-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/wayland-devel
> >
>
>


-- 
  Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140731/a5db9a27/attachment-0001.html>


More information about the wayland-devel mailing list