Top Most application Rendered by weston
Pekka Paalanen
ppaalanen at gmail.com
Thu Feb 25 09:12:04 UTC 2021
On Thu, 25 Feb 2021 09:59:50 +0530
"Sameer Ranjan" <sameer at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20210225/e0034801/attachment.sig>
More information about the wayland-devel
mailing list