wlroots came pretty late so there was a lot of code duplication between Weston/GNOME/KDE before that.