Hi Han,

In ivi-shell architecture, there are controller plugins which controls the 
layout of surfaces on the display. The controller plugins are using 
ivi_layout_interface to do that.
In weston repository, we have hmi-controller plugin which is good for demo 
purposes. But it is not suitable for production use-cases.

Please check https://github.com/GENIVI/wayland-ivi-extension. There, we have 
ivi-controller plugin which enables you to control the layout via ivi_wm 
protocol.
You can use ivi-wm protocol directly in your Window Manager app, or you can use 
ilmControl library, or you can use LayerManagerControl command line tool to 
control the layout of surfaces.

Best regards

Emre Ucan
Engineering Software Base (ADITG/ESB)

Tel. +49 5121 49 6937
From: wayland-devel [mailto:wayland-devel-boun...@lists.freedesktop.org] On 
Behalf Of Han, Guowei
Sent: Mittwoch, 3. Januar 2018 18:39
To: Jasper St. Pierre; wayland
Subject: RE: Window positioning

Thanks for all the help. Will start look into ivi-shell.

From: magc...@gmail.com<mailto:magc...@gmail.com> [mailto:magc...@gmail.com] On 
Behalf Of Jasper St. Pierre
Sent: Wednesday, January 03, 2018 12:28 PM
To: Han, Guowei 
<guowei....@johnsonoutdoors.com<mailto:guowei....@johnsonoutdoors.com>>; 
wayland 
<wayland-devel@lists.freedesktop.org<mailto:wayland-devel@lists.freedesktop.org>>
Subject: Re: Window positioning

(Please Reply All in the future so that responses go to the mailing list)

Hi Han,

In that case, you should probably use a protocol designed for embedded surface 
layout, like ivi-shell, rather than xdg-shell. Embedded, static-size display is 
a very different use case than a modern desktop system which requires hotplug 
and multimonitor layouts.

On Wed, Jan 3, 2018 at 9:26 AM, Han, Guowei 
<guowei....@johnsonoutdoors.com<mailto:guowei....@johnsonoutdoors.com>> wrote:
We are not allowing user move position since we are in an embedded system. So 
that’s not an issue for us. We don’t even have a mouse connected.

From: magc...@gmail.com<mailto:magc...@gmail.com> 
[mailto:magc...@gmail.com<mailto:magc...@gmail.com>] On Behalf Of Jasper St. 
Pierre
Sent: Wednesday, January 03, 2018 12:24 PM
To: Han, Guowei 
<guowei....@johnsonoutdoors.com<mailto:guowei....@johnsonoutdoors.com>>
Cc: Kai-Uwe <ku.b-l...@gmx.de<mailto:ku.b-l...@gmx.de>>; wayland 
<wayland-devel@lists.freedesktop.org<mailto:wayland-devel@lists.freedesktop.org>>
Subject: Re: Window positioning

Hi Han,

Allowing yourselves to place multiple windows where you want it then isn't 
going to solve that problem, since users can still drag them around, minimize 
them, etc. Multiprocess rendering is a bit tricksy, and there's no standardized 
way to do it right now. The traditional technique is to build your own Wayland 
compositor inside your application, which is a bit heavyweight, and then use 
wl_subsurface to composite the results. This is what e.g. WebKit2's 
architecture does, and it's something I've tried to implement in the past [0]. 
As the scope of a Wayland compositor becomes larger and larger over time, I 
think this is starting to become a bit impractical. It might be worth looking 
into a multi-process buffer-sharing protocol as a Wayland extension, since it's 
a use case that keeps coming up.

[0] https://github.com/magcius/wakefield

On Wed, Jan 3, 2018 at 5:23 AM, Han, Guowei 
<guowei....@johnsonoutdoors.com<mailto:guowei....@johnsonoutdoors.com>> wrote:
We are running a multi process application. And GUI is act as a transparent top 
layer. All other process rendering by them self underneath. So its important 
for other process to place the window at right potion.

Sent from my iPhone

On Jan 3, 2018, at 2:58 AM, Kai-Uwe <ku.b-l...@gmx.de<mailto:ku.b-l...@gmx.de>> 
wrote:

Maybe you are after a full screen application then. With that you should be 
able to decide about the positioning on the whole output.
Am 03.01.2018 um 02:37 schrieb Han, Guowei:
Thanks Jasper. Do u know if there's a demo i can learn from? Currently i am 
creating a bigger surface bigger than screen size. and make subsurface so i can 
posion them as i want. Really don't think its a good way to do it.

Sent from my iPhone

On Jan 2, 2018, at 4:25 PM, Jasper St. Pierre 
<jstpie...@mecheye.net<mailto:jstpie...@mecheye.net>> wrote:
*EXTERNAL EMAIL*
Hi Han,

You cannot position surfaces absolutely using the traditional xdg-shell 
protocol. However, for embedded cases, there are protocols like ivi-shell which 
provide that functionality.

On Fri, Dec 29, 2017 at 10:09 AM, Han, Guowei 
<guowei....@johnsonoutdoors.com<mailto:guowei....@johnsonoutdoors.com>> wrote:

Hi,



Wonder if there’s a way we can position window to anywhere we want using 
wayland or maybe weston?



Thanks,


The information in this email and any attachments may contain proprietary and 
confidential information that is intended for the addressee(s) only. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, retention or use of the contents of this information is 
prohibited. If you have received this email in error, please immediately 
contact the sender and delete the email.

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



--
  Jasper


_______________________________________________

wayland-devel mailing list

wayland-devel@lists.freedesktop.org<mailto:wayland-devel@lists.freedesktop.org>

https://lists.freedesktop.org/mailman/listinfo/wayland-devel


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



--
  Jasper



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

Reply via email to