LWN.net Logo

LCA: The ways of Wayland

LCA: The ways of Wayland

Posted Feb 16, 2013 2:11 UTC (Sat) by Serge (guest, #84957)
In reply to: LCA: The ways of Wayland by raven667
Parent article: LCA: The ways of Wayland

> Wayland should be easier to make a window manager/compositor for than X11 because it has a sane design.

Hm... Modern cars are very complex, so many buttons, so many parts, they take too much space, require too much fuel, and they were designed ages ago! There's a fundamental flaw: they have 4 wheels. That's too much, people don't need so many wheels. Let's fix that! I present you... unicycle. It's simple, easy to use, takes little space, has just a few parts, easy to support. It has sane design.

Of course that's sarcasm. But still, Wayland design is simple, that does not make it sane. For example client side decorations make sane tiling (and many other things) impossible.

> I expect there to continue to be a robust assortment of Wayland compositors with various behaviors, some ported from X11 window managers, some based on Weston. It would make sense to build from the reference Weston implementation rather than writing your own from scratch.

Forking and patching Weston is not that simple. But even if people start forking Weston to implement dockbars, WMs, etc. you end up choosing between Wayland compositors with nice WM, nice dockbars, nice theming support OR nice workspaces. And you'll have to choose only one of them. Do you call that sane design?

> That's not really true, X11 doesn't have any support for dockbars and the like

X11 does have that support (EWMH). By "support" I mean ability to implement it without having to patch X.Org or write protocol extensions. X11 is so good that it allows me to do that.

> standards hammered out over the years by the window manager makers for dockbars and other apps

That's what I was talking about! Yes, if I was inventing dockbar, I would have to write a standard for that. But it's already done, ~20 years ago. And now Wayland makes everybody to reinvent the wheels, spend 10 more years to write all those standards again. From scratch. But use extensions, outside of Wayland. Because core Wayland protocol does not allow that by design.

> a window manager which supports all the relevant standards you just talked about previously takes far far far more than 50 LoC

I just tried TinyWM (which is ~50 lines) and it works. :) Well, I had to unbind Alt+F1 to make it work. As for some actually useful WMs, there's DWM. Yes, it's about 40 times larger than TinyWM, but it's 20 times smaller than Weston and has many features that Weston does not.

> I would expect new versions of the relevant standards that these window managers, such as kwin, already support.

That's it! Wayland is useless as it is now. It's just a toy, like TinyWM. To make it useful you NEED all those standards. After ~10 more years new compositor-related standards will appear, and "simple wayland protocol" will slowly turn into "core wayland protocol + extensions + standards". But hey, X11 is "core protocol + extensions + standards". Why breaking everything and inventing another X11 if we already have X11?


(Log in to post comments)

LCA: The ways of Wayland

Posted Feb 16, 2013 3:58 UTC (Sat) by raven667 (subscriber, #5198) [Link]

You make it seem like all the work on window manager standards will have to not only be reimplementing from scratch but reinvented, like all of the developers will develop some kind of selective amnesia

I'm not sure what more can be said, others can decide for themselves whether you've addressed my points or I've addressed yours and whose version of reality is most likely to be predictive and useful

LCA: The ways of Wayland

Posted Feb 16, 2013 9:50 UTC (Sat) by daniels (subscriber, #16193) [Link]

I'm not going to go over the same points (like how you don't need to fork Weston because it has a stable plugin ABI) again because we've already been over it and yet you insist on spouting this nonsense. But:

> Why breaking everything and inventing another X11 if we already have X11?

Keep using X, then. It's not going to stop existing, and with all its advantages it sounds like it's going to be much better for you.

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