LWN.net Logo

Yet another Wayland thread

Yet another Wayland thread

Posted Mar 12, 2013 22:53 UTC (Tue) by micka (subscriber, #38720)
In reply to: Yet another Wayland thread by Serge
Parent article: Canonical reveals plans to launch Mir display server (The H)

I'm not familiar with the actual apis under the window hints, so I'll tell how I imagine it and I can be corrected :

The client sets a property (a hint) and the window manager, if it knows it, interprets it.

When you decide to use a new hint, you change the window manager to interpret it and then use it in the client. So you must recompile the WM.
X provides the communication transport.

In wayland world, all this happens between the client and the compositor. If you must add a hint, you change and recompile the compositor.
There is no transport in the middle (X role above).

In both cases, the work to add a new hint is exactly the same.

Where was I wrong ?


(Log in to post comments)

Yet another Wayland thread

Posted Mar 15, 2013 8:27 UTC (Fri) by Serge (guest, #84957) [Link]

> When you decide to use a new hint, you change the window manager to interpret it and then use it in the client. So you must recompile the WM. X provides the communication transport.

You CAN recompile WM, but you don't have to. Your program and WM are independent. You can build your program on another WM and it will work there, just your hint will be ignored.

> In wayland world, all this happens between the client and the compositor. If you must add a hint, you change and recompile the compositor.

In Weston/Wayland you MUST recompile the compositor. Your program links with compositor, they share protocol. People won't be able build it until they update the compositor too.

> In both cases, the work to add a new hint is exactly the same.

You forget about the first difference. For the last 20 years most hints were already added, standards for them were already written and implemented in WMs. But in Wayland world you have to spend those 20 years again to reimplement them all from scratch. And you cannot reuse those standards, because Wayland does everything differently.

So in wayland world in addition to the work of adding a new hint you have to also do a lot of work to add all the old hints. It's a weird world...

Yet another Wayland thread

Posted Mar 15, 2013 9:37 UTC (Fri) by micka (subscriber, #38720) [Link]

> But in Wayland world you have to spend those 20 years again to reimplement them all from scratch.

For my part, I will assume that wayland devs are intelligent beings that are even able to make use of all the hard word that's been done in the past.

Yet another Wayland thread

Posted Mar 15, 2013 16:09 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link]

> In Weston/Wayland you MUST recompile the compositor. Your program links with compositor, they share protocol. People won't be able build it until they update the compositor too.
Weston/Wayland? What is it?

Wayland and Weston are completely separate and independent components.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds