Client side decorations?

Pavel Sanda sanda at lyx.org
Thu May 11 17:32:23 UTC 2023


On Thu, May 11, 2023 at 06:46:09PM +0200, lorenzobertini97 at gmail.com wrote:
> Il giorno gio, 11/05/2023 alle 17.51 +0200, Pavel Sanda ha scritto:
> > 
> > I am really new to the debate and do not know the backgrounds,
> > but how is wayland + mutter supposed to deliver united graphical
> > experience if every non-gtk application is supposed to draw it's
> > own decorations?
> 
> It's a design choice rooted to the very origin of wayland. There have
> been written many comments about it under the periodic bug reports
> under mutter. Some polite, some less.

After reading little bit I think it's more subtle. It's not design
choice of Wayland at all. Wayland allows both server-side and client-side
decorations and has a protocol for an app to negotiate. So KWin+Wayland
for example can do server-side decorations as well.

It's choice of gnome/mutter devs to just support client-side and try to 
force all others to do the implementation work instead of doing the hard work
and implementing server side.

(Based on KWin maintainer blog, so there might be bias... : 
https://blog.martin-graesslin.com/blog/2018/01/server-side-decorations-and-wayland/
)

> > Can we just ask Qt, use CSD default for the given system if running
> > under wayland?
> 
> Right in the heart of the problem: GNOME doesn't have CSD default. Qt
> by default draws some barebone window decorations (in the screenshot)
> that don't have shadows.
>
> > We should not make decisions about our window decorations look.
> 
> KDE says you shouldn't. GNOME says not only you should, you must. It's
> fair to just stick with not doing it, I was just wondering if we would
> benefit from it in some way. If we don't, so be it.

There seems to exist QGnomePlatform & Adwaita-qt which might be of help.
But I do not personally use either Wayland nor Gnome, so that's where
my ability to debug/test stops... Maybe someone of the early Fedora 
adopters of Wayland might step in.

So although I'm not happy your UI LyX experience is not that great the
only suggestion I currently have is to try another compositor than mutter.

Pavel


More information about the lyx-devel mailing list