Window positioning
Jasper St. Pierre
jstpierre at mecheye.net
Wed Jan 3 17:24:17 UTC 2018
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.Han at 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-list at 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 <jstpierre at 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.Han at 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 at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
>>
>>
>
>
> --
> Jasper
>
>
>
> _______________________________________________
> wayland-devel mailing listwayland-devel at lists.freedesktop.orghttps://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>
--
Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180103/340fae38/attachment.html>
More information about the wayland-devel
mailing list