Re:The future of Wayland, and Sway's role in it
by Sir_Cmpwn on Thursday October 19, 2017 @01:31PM
(#15509811)
A simplified view follows:
Previously: displays & input devices -> xorg-server -> compton -> window manager -> X11 protocol -> X11 clients
Now: displays & input devices -> wayland compositor -> wayland protocol -> wayland clients
Re:The future of Wayland, and Sway's role in it
by apetresc on Thursday October 19, 2017 @03:50PM
(#15511026)
So does that mean that if you wanted to port, say, Xmonad to Wayland, you would have to reimplement compositing logic again? (Since the existing compositing-logic implementation also handles things like window placement that you would want to override)
Re:The future of Wayland, and Sway's role in it
by Sir_Cmpwn on Thursday October 19, 2017 @03:58PM
(#15511069)
In theory, yes. In practice, you could build something on top of wlroots, which does a lot of the work for you. In fact, check this out:
Re:The future of Wayland, and Sway's role in it
by apetresc on Friday October 20, 2017 @03:11PM
(#15518434)
Thank you for the clarifications :)
Re:The future of Wayland, and Sway's role in it
by jononor on Thursday October 19, 2017 @07:04PM
(#15512294)
An X window manager would likely have to be completely rewritten to work on Wayland, I doubt many of them have much abstraction of the underlying window system.
Re:The future of Wayland, and Sway's role in it
by kiddico on Thursday October 19, 2017 @01:21PM
(#15509720)
I believe this is a result of wayland. The window manager now includes what you think of as compositing in the world of X11. The compositor just also happens to do the window placement. I think. I do not yet understand wayland, so if someone knows more I'd love if they shared.
edit: that was sort of correct. More info here: https://en.wikipedia.org/wiki/Wayland_(display_server_protoc...
Re:The future of Wayland, and Sway's role in it
by bostik on Thursday October 19, 2017 @03:39PM
(#15510937)
Few years back when I was working with Wayland on a particular automotive project I came up with an explanation we could use with those outside the project.
Wayland is a protocol, which isn't really instructive. But the reference implementation, libwayland, is easier to comprehend. You can think of libwayland as a library for writing window managers directly on the framebuffer. Sure - that's a lie, but it's a helpful lie.
But sway is much more than that – it manages windows, handles input, etc. Why does it refer to itself as a compositor everywhere?