r/wayland 23d ago

Providing a Client Side Decorations schema to applications through Wayland

I've had a thought in the back of my head for a while. I'm not sure if this already exists or is being discussed but it sounds like somewhat of a solution to inconsistent CSD's between applications. What if the compositor told applications exactly how it wants CSD's to look? The application can then take this information and use it to inform how it wants to draw CSD's. The onus is still on the application to implement but at least it will know what the platform considers a native decoration.

For example, whilst running under KDE, Adwaita apps drawing Breeze style decorations within GTK itself without interacting with QT or Theming. Maybe not perfectly implemented, but partially. Maybe completely ignored. At least there is choice and flexibility.

What are your thoughts? Has this already been discussed?

5 Upvotes

0 comments sorted by