<div dir="ltr"><div>Hi,</div><div><br></div><div>Thank you for the input.<br></div><div><br></div><div>id-agent plugin is not in use at present. This particular system has 2 classes of applications. <br></div><div>1. Qt applications - They use IVI_SURFACE_ID environment variable to set the surface ID for each application via an init shellscript.</div><div>2. XOrg applications - These are running with help from xwayland and the surface IDs for these is at provided via weston.ini.</div><div><br></div><div>So I should use id-agent for XOrg applications to set surface ID instead of providing via weston.ini. And so we will get control of surface ID's when using multiple instances. I think this could be a valid solution. I'll try to figure this out.</div><div><br></div><div>Meanwhile the multi-instance use case is thrown out for now, so for single instance of the XOrg application, providing a fixed surface ID via weston.ini works fine for now.<br></div><div><br></div><div>Regards,</div><div>Vaibhav <br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 16, 2021 at 1:53 AM Eugen Friedrich <<a href="mailto:friedrix@gmail.com">friedrix@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi Dalvi,</div><div dir="auto"><br></div><div dir="auto">The ivi id is something application needs to set explicitly, need to understand how the id is assigned for application you already can control?! </div><div dir="auto">Are you using id-agent plugin?</div><div dir="auto"> </div><div dir="auto">Best regards</div><div dir="auto">Jena</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Vaibhav Dalvi <<a href="mailto:vaibhav.dlv@gmail.com" target="_blank">vaibhav.dlv@gmail.com</a>> schrieb am Fr. 4. Juni 2021 um 07:19:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div>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. )</div><div><br></div><div>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. <br></div><div><br></div><div>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.</div><div><br></div><div>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.<br></div><div><br></div></div>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div></div>
</blockquote></div>