On Thu, 31 Jul 2014 01:20:32 -0700 (PDT) [email protected] wrote: > Yes. I also think so. But we may need the comments of Wayland maintainer > about this design because it need change the compositor logic.
Already if a surface is not part of any output's repaint (i.e. is not on any layer that is part of repaint), the frame callbacks will not be sent. So if you can put the surface on a layer that is not going for repaint, it should already work. No changes in Weston core needed. Then the apps need to realize they are not getting frame callbacks, and do the necessary clean-ups, if simply stopping repaint is not enough. Thanks, pq > > 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, <[email protected]> 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, <[email protected]> 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 > >> >> [email protected] > >> >> http://lists.freedesktop.org/mailman/listinfo/wayland-devel > >> >> > >> > _______________________________________________ > >> > wayland-devel mailing list > >> > [email protected] > >> > http://lists.freedesktop.org/mailman/listinfo/wayland-devel > >> > > >> > >> > > > > > > -- > > Jasper > > _______________________________________________ > > wayland-devel mailing list > > [email protected] > > http://lists.freedesktop.org/mailman/listinfo/wayland-devel > > > > _______________________________________________ > wayland-devel mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/wayland-devel _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
