Surface ID assignment for multiple instances of an application

Eugen Friedrich friedrix at gmail.com
Tue Jun 15 20:23:46 UTC 2021


Hi Dalvi,

The ivi id is something application needs to set explicitly, need to
understand how the id is assigned for application you already can control?!
Are you using id-agent plugin?

Best regards
Jena

Vaibhav Dalvi <vaibhav.dlv at gmail.com> schrieb am Fr. 4. Juni 2021 um 07:19:

> Hi all,
> I'm working on a simple C++ application (dbus-service) which can
> start/stop another application ( a vnc viewer application ). My platform is
> arm-linux with wayland + ivi-shell. Now I am able to start / stop the x11
> vncviewer application one instance. Needed to add desktop-app entries in
> weston.ini. I'm using LayerManagerControl commands to manage the window (
> at present - further on ilm API's shall be used. )
>
> Now my next use case is multiple instances of this vnc viewer application.
> And for that I added few more desktop-app entries to weston.ini, and
> updated the service to launch multiple instances of vnc viewer. I am able
> to launch multiple instances of vncviewer. But to control those instances,
> I need to know which instance is assigned which surface ID.
>
> Another look at ilm api's led me to surface-property's creator-PID field.
> Unfortunately with xwayland, for x11 apps this field contains PID of
> xwayland instance and not the actual x11 app.
>
> I looked at libweston as well as xwayland-api, but not able to see a clear
> solution. Please suggest any way to obtain this mapping of surface ID and
> process ID for x11 apps with xwayland.
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20210615/55c52e79/attachment-0001.htm>


More information about the wayland-devel mailing list