Re: Client side decorations?
Am Sonntag, dem 14.05.2023 um 16:37 +0200 schrieb Jean-Marc Lasgouttes: > What is the distribution that you use? OpenSuse Tumbleweed here. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
Le 14/05/2023 à 15:18, lorenzobertin...@gmail.com a écrit : It does not use server-side decorations with ubuntu. The thing is a complete mystery to me. Ubuntu is still defaulting to X11, and when run under that server mutter should draw decorations. What platform is Qt selecting? I have a wayland session. Since Ubuntu 23.04, Qt applications start as wayland by default (before that, X11 was selected). The consequence is that by default now, LyX has ugly decorations with Ubuntu. What is the distribution that you use? JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
Il giorno dom, 14/05/2023 alle 14.50 +0200, Jean-Marc Lasgouttes ha scritto: > Le 14/05/2023 à 13:59, Jürgen Spitzmüller a écrit : > > Am Samstag, dem 13.05.2023 um 21:57 +0200 schrieb Pavel Sanda: > > > What does it mean "using"? It's decision in the userspace > > > configuration or you need to locally patch the source code? > > > > I'm having > > > > export QT_QPA_PLATFORMTHEME=gnome > > > > in ~/.profile > > It does not use server-side decorations with ubuntu. The thing is a > complete mystery to me. > > JMarc > Ubuntu is still defaulting to X11, and when run under that server mutter should draw decorations. What platform is Qt selecting? -- Lorenzo -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
Le 14/05/2023 à 13:59, Jürgen Spitzmüller a écrit : Am Samstag, dem 13.05.2023 um 21:57 +0200 schrieb Pavel Sanda: What does it mean "using"? It's decision in the userspace configuration or you need to locally patch the source code? I'm having export QT_QPA_PLATFORMTHEME=gnome in ~/.profile It does not use server-side decorations with ubuntu. The thing is a complete mystery to me. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
Am Samstag, dem 13.05.2023 um 21:57 +0200 schrieb Pavel Sanda: > What does it mean "using"? It's decision in the userspace > configuration or you need to locally patch the source code? I'm having export QT_QPA_PLATFORMTHEME=gnome in ~/.profile -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
Il giorno sab, 13/05/2023 alle 21.57 +0200, Pavel Sanda ha scritto: > On Sat, May 13, 2023 at 07:04:24PM +0200, Jürgen Spitzmüller wrote > > > > FWIW I am using that and I am quite satisfied with the result. > > What does it mean "using"? It's decision in the userspace > configuration > or you need to locally patch the source code? > > We might put some note into RELEASE-NOTES about it? > > Pavel Qt can choose the platform at runtime, and gnome already sets the platform to be "gnome" if present (alternatives are "wayland" for the default barebone decoration, or xcb to run on X11), so that when QGnomePlatform provides the appropriate file, the windows get the decorations automatically on gnome. Lorenzo -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
On Sat, May 13, 2023 at 07:04:24PM +0200, Jürgen Spitzmüller wrote: > Am Donnerstag, dem 11.05.2023 um 19:32 +0200 schrieb Pavel Sanda: > > There seems to exist QGnomePlatform & Adwaita-qt which might be of > > help. > > FWIW I am using that and I am quite satisfied with the result. What does it mean "using"? It's decision in the userspace configuration or you need to locally patch the source code? We might put some note into RELEASE-NOTES about it? Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
Am Donnerstag, dem 11.05.2023 um 19:32 +0200 schrieb Pavel Sanda: > There seems to exist QGnomePlatform & Adwaita-qt which might be of > help. FWIW I am using that and I am quite satisfied with the result. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
Le 11/05/2023 à 19:32, Pavel Sanda a écrit : On Thu, May 11, 2023 at 06:46:09PM +0200, lorenzobertin...@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 turns out that I have been very annoyed by this too recently and did some research. My problem is that all I found is some QML mumbo jumbo: https://doc.qt.io/qt-6/qtwaylandcompositor-server-side-decoration-example.html What we are looking for is this class: https://doc.qt.io/qt-6/qml-qtwayland-compositor-xdgshell-xdgdecorationmanagerv1.html https://doc.qt.io/qt-6/qwaylandxdgdecorationmanagerv1.html But I have no idea how to use these things. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
On Thu, May 11, 2023 at 06:46:09PM +0200, lorenzobertin...@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 -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
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. > 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. -- Lorenzo -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Client side decorations?
On Thu, May 11, 2023 at 04:38:52PM +0200, lorenzobertin...@gmail.com wrote: > I've been facing this problem for a while: LyX, and in general Qt > programs, don't draw a shadow or have a proper titlebar under wayland > in the GNOME desktop environment, or really any desktop that uses > mutter. See attached screenshot to see how this can sometimes be an > inconvenience. > > This is because mutter doesn't draw neither shadows nor a titlebar for > windows, and relegates everything to the program when under wayland. > This is heatedly discussed in many bug reports, but the GNOME devs are > adamant: mutter won't add anything to windows. 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? We should not make decisions about our window decorations look. Can we just ask Qt, use CSD default for the given system if running under wayland? Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel