Use wayland-protocols
ClosedPublic

Authored by zzag on Jul 2 2019, 5:32 PM.

Details

Summary

So far we've been copying protocol specifications from wayland-protocols
repo to kwayland repo. The main issue with copying is that we have to
keep xml files in sync manually. A better approach would be to use xml
specs straight from wayland-protocols package.

Test Plan

Compiles.

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.Jul 2 2019, 5:32 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 2 2019, 5:32 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
zzag requested review of this revision.Jul 2 2019, 5:32 PM
zzag added a comment.Jul 2 2019, 5:33 PM

find_package(WaylandProtocols 1.15)

because xdg-decoration was introduced in 1.15.

Makes sense to me. Why was it done differently until now?

apol added a subscriber: apol.Jul 3 2019, 2:15 AM

Big +1.

zzag added a comment.Jul 3 2019, 9:30 AM

Why was it done differently until now?

I can't give you an answer, but my guess is for historical reasons. Initially, kwayland repo had only proprietary protocols, like server_decoration, etc. Protocols from wayland-protocols were copied to follow the pattern. Also perhaps because some protocols weren't in the current wayland-protocols release yet.

zzag added a comment.Jul 3 2019, 9:32 AM

Generally, I see nothing wrong with waiting until protocol foo becomes part of the current wayland-protocols release. If the protocol is really importatnt, we can make temporary copy and after several kwayland releases drop it.

zzag added a comment.Jul 3 2019, 9:36 AM

Also, it's worth to point out that neither weston, nor Mutter, nor wlroots copy protocol specs, they just have wayland-protocols as a dependency.

romangg accepted this revision.Jul 3 2019, 9:57 AM
romangg added a subscriber: davidedmundson.

Yea, let's wait until 5.60 branched and then push for 5.61 (after next weekend) as long as @davidedmundson does not say anything against it until then.

This revision is now accepted and ready to land.Jul 3 2019, 9:57 AM
davidedmundson accepted this revision.Jul 3 2019, 12:54 PM

It's the technically correct thing to do.

Generally, I see nothing wrong with waiting until protocol foo becomes part of the current wayland-protocols release.

The problem there is that then we're not giving proper feedback until after a release, and then it's too late.
But as you say, we can always copy them.

zzag retitled this revision from RFC: Use wayland-protocols to Use wayland-protocols.Jul 3 2019, 1:46 PM
This revision was automatically updated to reflect the committed changes.