On Thu, 25 Feb 2021 09:59:50 +0530
"Sameer Ranjan" <sam...@cdot.in> wrote:

> Hey,
> 
> I am using weston as compositor for my platform. I am developing a feature in 
> which I 
> would want to know the top most application displayed by the compositor as 
> multiple 
> application can be opened at a single instance. Is there any variable or any 
> function 
> provided in weston by which I can know the top most application name rendered 
> by the 
> compositor.

Hi,

not directly, no. Your shell plugin maintains all that information, so
it's between you and the shell plugin.

Shell-plugins collect weston_views into weston_layers and put
weston_layers into weston_compositor::layer_list according to the
desired surface z-order.

For an example of how to iterate the layers, see
weston_compositor_print_scene_graph().

In order to detect which weston_surface is an application window and
get an appropriate name for it, you need information specific to the
shell-plugin. There is no generic API for this. Do not attempt to parse
what weston_surface::get_label() returns as that is not meant to be
machine-readable nor stable.

If you want to see what weston_compositor_print_scene_graph() prints,
start weston with --debug option and use 'weston-debug scene-graph'
command in a terminal.


Thanks,
pq

Attachment: pgp4ehDEqkMs9.pgp
Description: OpenPGP digital signature

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to